From 6998036bdc8427f1b00e9a64c78d78ae9dddc83d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=A8=81?= Date: Fri, 22 May 2015 17:18:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=93=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BD=BF=E7=94=A8Ctrl+C=E7=BB=93=E6=9D=9F=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=E6=97=B6,=E6=B2=A1=E6=9C=89=E6=AD=A3=E7=A1=AE=E9=80=80?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- connect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/connect.py b/connect.py index 0721b2ad9..196699778 100644 --- a/connect.py +++ b/connect.py @@ -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