[issue8052] subprocess close_fds behavior should only close open fds

STINNER Victor report at bugs.python.org
Sun Mar 27 12:14:21 CEST 2011

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

Can we use FD_CLOEXEC to archive this goal? Example: open all files with FD_CLOEXEC set and don't close explicitly files on fork. preexec_fn will get access to the files, but the problem is exec(), not preexec_fn.

I suppose that it will slow down programs not using subprocess, and it may have border effects.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list