]> granicus.if.org Git - python/commitdiff
Fixes issue #16140: The subprocess module no longer double closes its
authorGregory P. Smith <greg@krypto.org>
Sun, 11 Nov 2012 09:38:18 +0000 (01:38 -0800)
committerGregory P. Smith <greg@krypto.org>
Sun, 11 Nov 2012 09:38:18 +0000 (01:38 -0800)
child subprocess.PIPE parent file descriptors on child error prior to
exec().

This would lead to race conditions in multithreaded programs where
another thread opened a file reusing the fd which was then closed out
from beneath it by the errant second close.

1  2 
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS

Simple merge
Simple merge
diff --cc Misc/NEWS
Simple merge