[issue8052] subprocess close_fds behavior should only close open fds

STINNER Victor report at bugs.python.org
Tue Mar 29 23:32:33 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> I like the approach suggested by Gregory in issue11284 (msg129912) - if we are
> sure the program is not multithreaded, get the list of fds before forking, and
> use that; otherwise, do it the slow way.

A signal handler can also opens new files :-)

----------

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


More information about the Python-bugs-list mailing list