Commit 4a9e0024 authored by 蓝枫's avatar 蓝枫

Merge pull request #6 from losswei/master

修复当用户使用Ctrl+C结束进程时,没有正确退出
parents e09cb104 6998036b
......@@ -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