summaryrefslogtreecommitdiff
path: root/asyncio/unix_events.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2013-10-20 20:21:11 -0700
committerGuido van Rossum <guido@python.org>2013-10-20 20:21:11 -0700
commitd1bde11a741d9de1c22816b36248c7915adabcd7 (patch)
treea2315fea0cec08f45ed0a39df0c7457e8c5bd3c8 /asyncio/unix_events.py
parent59b88bf147a9021b127e877b01648728cb2ea6e7 (diff)
downloadtrollius-d1bde11a741d9de1c22816b36248c7915adabcd7.tar.gz
CPython issue #19309: make waitpid() wait for processes from all groups.
Diffstat (limited to 'asyncio/unix_events.py')
-rw-r--r--asyncio/unix_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/asyncio/unix_events.py b/asyncio/unix_events.py
index a234f4f..7623f78 100644
--- a/asyncio/unix_events.py
+++ b/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: