master should wait for child to quit

This commit is contained in:
clowwindy 2014-12-11 13:00:08 +08:00
parent 2a149a5b3f
commit d42a32fbc0

View file

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