diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2013-10-20 18:31:43 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2013-10-20 18:31:43 (GMT) |
commit | bcd76827f4ef869454634cabefb695ff7e63967d (patch) | |
tree | e5e3e2dcfa20a44fa69263f6436f0e3345265c86 /Lib/asyncio | |
parent | f3e21ba5af43f1e8637b2752fecc3d4523056b5c (diff) | |
download | cpython-bcd76827f4ef869454634cabefb695ff7e63967d.zip cpython-bcd76827f4ef869454634cabefb695ff7e63967d.tar.gz cpython-bcd76827f4ef869454634cabefb695ff7e63967d.tar.bz2 |
Issue #19309: asyncio: make waitpid() wait for all child processes, not only
those in the same process group.
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/unix_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index a234f4f..7623f78 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: |