]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True (#113118)
authorJakub Kulík <Kulikjak@gmail.com>
Sun, 17 Dec 2023 21:34:57 +0000 (22:34 +0100)
committerGitHub <noreply@github.com>
Sun, 17 Dec 2023 21:34:57 +0000 (21:34 +0000)
commit2b93f5224216d10f8119373e72b5c2b3984e0af6
tree2fe266d813dedeef8a19822a0db19713a8f460e5
parent32d87a88994c131a9f3857d01ae7c07918577a55
gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True (#113118)

Add support for `os.POSIX_SPAWN_CLOSEFROM` and
`posix_spawn_file_actions_addclosefrom_np` and have the `subprocess` module use
them when available.  This means `posix_spawn` can now be used in the default
`close_fds=True` situation on many platforms.

Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
Doc/library/os.rst
Doc/whatsnew/3.13.rst
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2023-12-16-10-58-34.gh-issue-113117.0zF7bH.rst [new file with mode: 0644]
Modules/posixmodule.c
configure
configure.ac
pyconfig.h.in