Browse Source

add SIGINT in workers

auth
clowwindy 10 years ago
parent
commit
be1d1d5032
  1. 1
      shadowsocks/server.py

1
shadowsocks/server.py

@ -118,6 +118,7 @@ def main():
sys.exit() sys.exit()
signal.signal(signal.SIGTERM, handler) signal.signal(signal.SIGTERM, handler)
signal.signal(signal.SIGQUIT, handler) signal.signal(signal.SIGQUIT, handler)
signal.signal(signal.SIGINT, handler)
# master # master
for a_tcp_server in tcp_servers: for a_tcp_server in tcp_servers:

Loading…
Cancel
Save