SIGN IN SIGN UP

gh-142302: Fix mkstemp() documentation: clarify file descriptor inheritance behavior (#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().

Co-authored-by: Victor Stinner <vstinner@python.org>
A
ADITYA RAI committed
e79c9b703117d8b0e7c4d86b704e2e7f120db883
Parent: 8735daf
Committed by GitHub <noreply@github.com> on 1/6/2026, 5:08:25 PM