[issue6559] [PATCH]add pass_fds paramter to subprocess.Popen()

Antoine Pitrou report at bugs.python.org
Fri Jul 24 10:28:19 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

The reason os.closerange() is used is that it can be slow to call
os.close() on lots of fds (I suppose this depends on the OS). See
http://code.python.org/hg/trunk/rev/43caff85ec85

Therefore, the patch should be smart enough to continue using
os.closerange() on ranges of contiguous FDs to be closed.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6559>
_______________________________________


More information about the Python-bugs-list mailing list