fix ctrl C
This commit is contained in:
parent
fd35f1d067
commit
2672a6378e
6 changed files with 10 additions and 5 deletions
|
@ -66,6 +66,11 @@ def main():
|
|||
tcp_server.start()
|
||||
for udp_server in udp_servers:
|
||||
udp_server.start()
|
||||
try:
|
||||
while sys.stdin.read():
|
||||
pass
|
||||
except KeyboardInterrupt:
|
||||
os._exit(0)
|
||||
|
||||
if int(config['workers']) > 1:
|
||||
if os.name == 'posix':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue