We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee37845 commit bc3e009Copy full SHA for bc3e009
Doc/library/subprocess.rst
@@ -459,7 +459,10 @@ functions.
459
common use of *preexec_fn* to call os.setsid() in the child.
460
461
If *close_fds* is true, all file descriptors except :const:`0`, :const:`1` and
462
- :const:`2` will be closed before the child process is executed.
+ :const:`2` will be closed before the child process is executed. Otherwise
463
+ when *close_fds* is false, file descriptors obey their inheritable flag
464
+ as described in :ref:`fd_inheritance`.
465
+
466
On Windows, if *close_fds* is true then no handles will be inherited by the
467
child process unless explicitly passed in the ``handle_list`` element of
468
:attr:`STARTUPINFO.lpAttributeList`, or by standard handle redirection.
0 commit comments