Issue #19309: asyncio: make waitpid() wait for all child processes, not only

those in the same process group.
This commit is contained in:
Charles-François Natali 2013-10-20 20:31:43 +02:00
parent f3e21ba5af
commit bcd76827f4
2 changed files with 21 additions and 1 deletions

View file

@ -168,7 +168,7 @@ class SelectorEventLoop(selector_events.BaseSelectorEventLoop):
def _sig_chld(self):
try:
try:
pid, status = os.waitpid(0, os.WNOHANG)
pid, status = os.waitpid(-1, os.WNOHANG)
except ChildProcessError:
return
if pid == 0: