Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
Closed
Description
Feature or enhancement
Proposal:
One of the reasonsposix_spawn
is rarely used with subprocess functions is that it doesn't supportclose_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.
Has this already been discussed elsewhere?
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