From d42a32fbc0462a050cf596f9cdb404a9be818a4a Mon Sep 17 00:00:00 2001 From: clowwindy Date: Thu, 11 Dec 2014 13:00:08 +0800 Subject: [PATCH] master should wait for child to quit --- shadowsocks/server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shadowsocks/server.py b/shadowsocks/server.py index 64b656b..9abdf9c 100755 --- a/shadowsocks/server.py +++ b/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()