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: for pid in children:
try: try:
os.kill(pid, signum) os.kill(pid, signum)
os.waitpid(pid, 0)
except OSError: # child may already exited except OSError: # child may already exited
pass pass
sys.exit() sys.exit()

Loading…
Cancel
Save