Thanks to visit codestin.com Credit goes to github.com
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 a9e5d0e commit dfb6e54Copy full SHA for dfb6e54
1 file changed
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