Merge pull request #6 from losswei/master

修复当用户使用Ctrl+C结束进程时,没有正确退出
pull/7/head
蓝枫 10 years ago
commit 4a9e002440

@ -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

Loading…
Cancel
Save