mirror of https://github.com/jumpserver/jumpserver
修复当用户使用Ctrl+C结束进程时,没有正确退出
parent
e09cb10439
commit
6998036bdc
|
@ -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…
Reference in New Issue