]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-142302: Fix mkstemp() documentation: clarify file descriptor inheritance...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 6 Jan 2026 17:14:42 +0000 (18:14 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Jan 2026 17:14:42 +0000 (17:14 +0000)
commite57cf1c0ebdbf46adcf899eb2c3555e9124e4032
tree79b9fedaaaaf1f0a2cf3c0cbb771d70699c264fc
parentf7711d55e5fb5f8ada625d16c8cfd05c8d3ea86b
[3.13] gh-142302: Fix mkstemp() documentation: clarify file descriptor inheritance behavior (GH-142338) (#143487)

gh-142302: Fix mkstemp() documentation: clarify file descriptor inheritance behavior (GH-142338)

The documentation incorrectly stated that the file descriptor is not
inherited by child processes. In reality, the close-on-exec flag (when
available) only prevents inheritance across exec() calls, not fork().
(cherry picked from commit e79c9b703117d8b0e7c4d86b704e2e7f120db883)

Co-authored-by: ADITYA RAI <adi.hack1234@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/library/os.rst
Doc/library/tempfile.rst