Skip to content

Commit 28a1791

Browse files
committed
Simplifying Documentation
1 parent 5cb0e22 commit 28a1791

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Doc/library/os.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,11 +1969,8 @@ can be inherited by child processes. Since Python 3.4, file descriptors
19691969
created by Python are non-inheritable by default.
19701970

19711971
On 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

19781975
On Windows, non-inheritable handles and file descriptors are closed in child
19791976
processes, except for standard streams (file descriptors 0, 1 and 2: stdin, stdout

0 commit comments

Comments
 (0)