[docs] [issue33079] subprocess: document the interaction between subprocess.Popen and os.set_inheritable

Gregory P. Smith report at bugs.python.org
Sun Mar 25 13:37:50 EDT 2018

Gregory P. Smith <greg at krypto.org> added the comment:

I assumed simon meant "close_fds=False" when he wrote open_fds = True.

Regardless, supplying any pass_fds forces close_fds=True behavior.

File descriptors listed in pass_fds are explicitly set inheritable from within the child process prior to calling exec().  See the start of child_exec() within Modules/_posixsubprocess.c.


Python tracker <report at bugs.python.org>

More information about the docs mailing list