summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2014-06-01 20:18:28 (GMT)
committerGregory P. Smith <greg@krypto.org>2014-06-01 20:18:28 (GMT)
commitd4dcb70287c7716b8d75014512070a0ad5c7740f (patch)
tree203bc65a8e5aa23ba5e860c88e90f98fc46b613d /Misc
parent694c3153b0046c975a2e762ee1600c4be98e55fe (diff)
downloadcpython-d4dcb70287c7716b8d75014512070a0ad5c7740f.zip
cpython-d4dcb70287c7716b8d75014512070a0ad5c7740f.tar.gz
cpython-d4dcb70287c7716b8d75014512070a0ad5c7740f.tar.bz2
Don't restrict ourselves to a "max" fd when closing fds before exec()
when we have a way to get an actual list of all open fds from the OS. Fixes issue #21618: The subprocess module would ignore fds that were inherited by the calling process and already higher than POSIX resource limits would otherwise allow. On systems with a functioning /proc/self/fd or /dev/fd interface the max is now ignored and all fds are closed.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index e01cf12..902d72e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -18,6 +18,11 @@ Core and Builtins
Library
-------
+- Issue #21618: The subprocess module could fail to close open fds that were
+ inherited by the calling process and already higher than POSIX resource
+ limits would otherwise allow. On systems with a functioning /proc/self/fd
+ or /dev/fd interface the max is now ignored and all fds are closed.
+
- Issue #21552: Fixed possible integer overflow of too long string lengths in
the tkinter module on 64-bit platforms.