summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2014-06-01 20:22:12 (GMT)
committerGregory P. Smith <greg@krypto.org>2014-06-01 20:22:12 (GMT)
commit3fe9e8d5a5ff730b3497fc4e5361bf15ccac14bb (patch)
treecf2e620b22bf132035b4a63cacac6b590ab84c0a /Misc
parent3ffa7ab2ef856b24f606273b08c5536c4dd12198 (diff)
parentd4dcb70287c7716b8d75014512070a0ad5c7740f (diff)
downloadcpython-3fe9e8d5a5ff730b3497fc4e5361bf15ccac14bb.zip
cpython-3fe9e8d5a5ff730b3497fc4e5361bf15ccac14bb.tar.gz
cpython-3fe9e8d5a5ff730b3497fc4e5361bf15ccac14bb.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 d2ecece..3bf554a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -89,6 +89,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 #20383: Introduce importlib.util.module_from_spec() as the preferred way
to create a new module.