File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1969,11 +1969,8 @@ can be inherited by child processes. Since Python 3.4, file descriptors
19691969created by Python are non-inheritable by default.
19701970
19711971On UNIX, non-inheritable file descriptors are closed in child processes at the
1972- execution of a new program (via :func: `os.execl ` and related functions), but
1973- they remain accessible after :func: `os.fork ` until an exec call occurs. In other
1974- words, a forked child process can still use the file descriptor, but it will be
1975- closed if that child process calls exec to run a new program. Inheritable file
1976- descriptors are inherited across both fork and exec calls.
1972+ execution of a new program, other file descriptors are inherited. Note that
1973+ non-inheritable file descriptors are still *inherited * by child process on :func: `os.fork `.
19771974
19781975On Windows, non-inheritable handles and file descriptors are closed in child
19791976processes, except for standard streams (file descriptors 0, 1 and 2: stdin, stdout
You can’t perform that action at this time.
0 commit comments