cpython: a963dd401a63 (original) (raw)
Mercurial > cpython
changeset 81022:a963dd401a63 2.7
Keep ref to ECHILD in local scope (#16650) [#16650]
Andrew Svetlov andrew.svetlov@gmail.com | |
---|---|
date | Mon, 24 Dec 2012 20:09:27 +0200 |
parents | 002d5f3b240d |
children | ff0426b5d75e |
files | Lib/subprocess.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-)[+] [-] Lib/subprocess.py 4 |
line wrap: on
line diff
--- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -1292,7 +1292,7 @@ class Popen(object): def _internal_poll(self, _deadstate=None, _waitpid=os.waitpid,
_WNOHANG=os.WNOHANG, _os_error=os.error):[](#l1.7)
_WNOHANG=os.WNOHANG, _os_error=os.error, _ECHILD=errno.ECHILD):[](#l1.8) """Check if child process has terminated. Returns returncode[](#l1.9) attribute.[](#l1.10)
@@ -1308,7 +1308,7 @@ class Popen(object): except _os_error as e: if _deadstate is not None: self.returncode = _deadstate
if e.errno == errno.ECHILD:[](#l1.16)
if e.errno == _ECHILD:[](#l1.17) # This happens if SIGCLD is set to be ignored or[](#l1.18) # waiting for child processes has otherwise been[](#l1.19) # disabled for our process. This child is dead, we[](#l1.20)