One of the reasons posix_spawn
is rarely used with subprocess functions is that it doesn't support close_fds=True
(which is the default value).
Previously, it was deemed infeasible to support this (#79718 (comment)), but since then, posix_spawn_file_actions_addclosefrom_np()
has become available on many systems (I know about Solaris, Linux and FreeBSD), which should make it pretty simple to support it.
No response given
Links to previous discussion of this feature:These two are related:
#79718 was the original issue for using os.posix_spawn() in subprocess.
#86904 proposed changing close_fds to default to False, so posix_spawn() could be used more often
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4