◐ Shell
reader mode source ↗
Skip to content

bpo-35537: subprocess can now use os.posix_spawnp#11579

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:subprocess_spawnp
Jan 16, 2019
Merged

bpo-35537: subprocess can now use os.posix_spawnp#11579
vstinner merged 1 commit into
python:masterfrom
vstinner:subprocess_spawnp

Conversation

@vstinner

@vstinner vstinner commented Jan 16, 2019

Copy link
Copy Markdown
Member

The subprocess module can now use the os.posix_spawnp() function if
it is available to locate the program in the PATH.

https://bugs.python.org/issue35537

The subprocess module can now use the os.posix_spawnp() function if
it is available to locate the program in the PATH.
@vstinner

Copy link
Copy Markdown
Member Author

I'm not sure that the exact list of errors catched or nor by subprocess when locating the executable is a major blocker issue, but I didn't notice that subprocess build a list of executable using the PATH computed from its env argument. Using the env argument is a major difference. The devil is in the details...

I'm no longer sure that using posix_spawnp() in subprocess is appropriate. In case of doubt, I prefer to revert this change to have more time to decide what is the best option. I wrote PR #11582 to revert this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants