Simplify ntpq's do_EOF and do_exit functions
From the help for Cmd.cmdloop: "This method will return when the postcmd() method returns a true value. The stop argument to postcmd() is the return value from the command’s corresponding do_*() method." So any do_*() method that returns True will exit cleanly.
Loading
Please register or sign in to comment