]> granicus.if.org Git - python/commit
Don't restrict ourselves to a "max" fd when closing fds before exec()
authorGregory P. Smith <greg@krypto.org>
Sun, 1 Jun 2014 20:22:12 +0000 (13:22 -0700)
committerGregory P. Smith <greg@krypto.org>
Sun, 1 Jun 2014 20:22:12 +0000 (13:22 -0700)
commit3fe9e8d5a5ff730b3497fc4e5361bf15ccac14bb
treecf2e620b22bf132035b4a63cacac6b590ab84c0a
parent3ffa7ab2ef856b24f606273b08c5536c4dd12198
parentd4dcb70287c7716b8d75014512070a0ad5c7740f
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.
Misc/NEWS