Skip to content

Commit 090d058

Browse files
committed
Add link to the detailed
fd-inheritance documentation as suggested by vstinner.
1 parent f574081 commit 090d058

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/library/tempfile.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,11 @@ The module defines the following user-callable items:
228228
the file is executable by no one.
229229

230230
The file descriptor is not inherited by child processes across
231-
:func:`exec <os.execl>` calls.
232-
231+
:func:`exec <os.execl>` calls, but will be inherited by child
232+
processes created via :func:`os.fork`. See
233+
`File Descriptor Inheritance <https://docs.python.org/dev/library/os.html#fd-inheritance>`_
234+
for more information.
235+
233236
Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible
234237
for deleting the temporary file when done with it.
235238

0 commit comments

Comments
 (0)