summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-11-11 09:37:02 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-11-11 09:37:02 (GMT)
commit12489d98e692717a93694644dac4975d54106178 (patch)
treefd89ced1744ea9395e0d5d0cd432b3a3b8641f5b /Misc
parent3aee2221229b9802dcc27b2709d5e97918b8ad46 (diff)
downloadcpython-12489d98e692717a93694644dac4975d54106178.zip
cpython-12489d98e692717a93694644dac4975d54106178.tar.gz
cpython-12489d98e692717a93694644dac4975d54106178.tar.bz2
Fixes issue #16140: The subprocess module no longer double closes its
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 49d6a1a..cdc96b8 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -162,6 +162,9 @@ Core and Builtins
Library
-------
+- Issue #16140: The subprocess module no longer double closes its child
+ subprocess.PIPE parent file descriptors on child error prior to exec().
+
- Remove a bare print to stdout from the subprocess module that could have
happened if the child process wrote garbage to its pre-exec error pipe.