mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
correct retrieving return value of os.waitpid()
This commit is contained in:
parent
eacce12fdc
commit
5bb05da6f7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue