Kaydet (Commit) 5bb05da6 authored tarafından Guido van Rossum's avatar Guido van Rossum

correct retrieving return value of os.waitpid()

üst eacce12f
......@@ -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