]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-77046: os.pipe() sets _O_NOINHERIT flag on fds (#113817)
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jan 2024 22:02:17 +0000 (23:02 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2024 22:02:17 +0000 (23:02 +0100)
commit1d75fa43a25e5f3c33f2aaaec28fab9430834792
tree34dba2c198c8befda9867702567f12876907922a
parente82b096335dcf31aedd2d265cbcc2f87ad971bfe
gh-77046: os.pipe() sets _O_NOINHERIT flag on fds (#113817)

On Windows, set _O_NOINHERIT flag on file descriptors
created by os.pipe() and io.WindowsConsoleIO.

Add test_pipe_spawnl() to test_os.

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Doc/library/msvcrt.rst
Lib/test/test_os.py
Misc/NEWS.d/next/Core and Builtins/2024-01-08-14-34-02.gh-issue-77046.sDUh2d.rst [new file with mode: 0644]
Modules/_io/winconsoleio.c
Modules/posixmodule.c