]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:12 +0000 (18:14 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Jan 2026 17:14:12 +0000 (17:14 +0000)
commit22a99ca8e198e7130d5070d9f482199bb6461127
tree3b740bdbde04af9fee7b8d95ffc87dd0f5ea8d4f
parentb9b2b3d86a205d41989474ca4da9b3308ccafecb
[3.14] gh-142302: Fix mkstemp() documentation: clarify file descriptor inheritance behavior (GH-142338) (#143486)

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