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()