Browse Source

master should wait for child to quit

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

1
shadowsocks/server.py

@ -104,6 +104,7 @@ def main():
for pid in children:
try:
os.kill(pid, signum)
os.waitpid(pid, 0)
except OSError: # child may already exited
pass
sys.exit()

Loading…
Cancel
Save