diff options
author | Charles-François Natali <neologix@free.fr> | 2011-08-18 17:18:28 +0200 |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-08-18 17:18:28 +0200 |
commit | b02302c5cf2c25be71fc23db15a1cd27fc517075 (patch) | |
tree | 126dd663a9e1b108ea32706778b53e47f5870ddf /Lib/subprocess.py | |
parent | 02ebf4f78b8f9cd753d4138e5b85323dec1f16d4 (diff) | |
download | cpython-git-b02302c5cf2c25be71fc23db15a1cd27fc517075.tar.gz |
Issue #12650: Fix a race condition where a subprocess.Popen could leak
resources (FD/zombie) when killed at the wrong time.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index e92961ab75..abd76ee82f 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -460,7 +460,7 @@ _active = [] def _cleanup(): for inst in _active[:]: res = inst._internal_poll(_deadstate=sys.maxint) - if res is not None and res >= 0: + if res is not None: try: _active.remove(inst) except ValueError: |