Commit 9a7ba47d authored by Guido van Rossum's avatar Guido van Rossum

correct retrieving return value of os.waitpid()

parent 8d5647b5
......@@ -290,7 +290,7 @@ class ForkingMixIn:
def collect_children(self):
"""Internal routine to wait for died children."""
while self.active_children:
pid = os.waitpid(0, os.WNOHANG)
pid, status = os.waitpid(0, os.WNOHANG)
if not pid: break
self.active_children.remove(pid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment