summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-11-11 09:41:49 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-11-11 09:41:49 (GMT)
commitc2c4cb624bac98e0fdb52258655d26c385a35335 (patch)
tree3274ada131123110abcb0561cfa4fec9a742548b /Misc
parentd4b645ef423667f179f136bee711b8ca85bd28d8 (diff)
parentc8ac03d936fd9fa7b48c0aaac01b66e8d8fcf766 (diff)
downloadcpython-c2c4cb624bac98e0fdb52258655d26c385a35335.zip
cpython-c2c4cb624bac98e0fdb52258655d26c385a35335.tar.gz
cpython-c2c4cb624bac98e0fdb52258655d26c385a35335.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 ba474d8..9729ba9 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -116,6 +116,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.