summaryrefslogtreecommitdiff
path: root/Lib/asyncio/unix_events.py
diff options
context:
space:
mode:
authorCharles-François Natali <cf.natali@gmail.com>2013-10-20 20:31:43 +0200
committerCharles-François Natali <cf.natali@gmail.com>2013-10-20 20:31:43 +0200
commitbcd76827f4ef869454634cabefb695ff7e63967d (patch)
treee5e3e2dcfa20a44fa69263f6436f0e3345265c86 /Lib/asyncio/unix_events.py
parentf3e21ba5af43f1e8637b2752fecc3d4523056b5c (diff)
downloadcpython-git-bcd76827f4ef869454634cabefb695ff7e63967d.tar.gz
Issue #19309: asyncio: make waitpid() wait for all child processes, not only
those in the same process group.
Diffstat (limited to 'Lib/asyncio/unix_events.py')
-rw-r--r--Lib/asyncio/unix_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py
index a234f4fac1..7623f789d3 100644
--- a/Lib/asyncio/unix_events.py
+++ b/Lib/asyncio/unix_events.py
@@ -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: