Commit 6998036b authored by 何威's avatar 何威

修复当用户使用Ctrl+C结束进程时,没有正确退出

parent e09cb104
......@@ -376,6 +376,8 @@ if __name__ == '__main__':
except EOFError:
print
continue
except KeyboardInterrupt:
sys.exit(0)
if option in ['P', 'p']:
print_user_host(LOGIN_NAME)
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment