◐ Shell
reader mode source ↗
Skip to content

bpo-35674: Expose posix_spawnp#11554

Merged
vstinner merged 3 commits into
python:masterfrom
nanjekyejoannah:spawnp
Jan 16, 2019
Merged

bpo-35674: Expose posix_spawnp#11554
vstinner merged 3 commits into
python:masterfrom
nanjekyejoannah:spawnp

Conversation

@nanjekyejoannah

@nanjekyejoannah nanjekyejoannah commented Jan 14, 2019

Copy link
Copy Markdown
Contributor

I have exposed posix_spawnp.

Co-Author: Victor Stinner vstinner@redhat.com

https://bugs.python.org/issue35674

@vstinner

Copy link
Copy Markdown
Member

AppVeyor build failed

That's because of the #ifdef issue, see my comment.

@pablogsal

Copy link
Copy Markdown
Member

Very good job Joannah! :)

I left some comments together with Victor's review. Ping me when you have addressed them.

@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

* Fix also indentation in posixmodule.c.
* Remove "if the *path* argument contains no directory" from
  os.posix_spawnp() doc
* Remove outdated comment from py_posix_spawn():
  /*[clinic end generated code: ...]*/
@vstinner vstinner dismissed serhiy-storchaka’s stale review January 16, 2019 13:19

Serhiy's comments have been addressed.

@vstinner

Copy link
Copy Markdown
Member

I checked Travis CI jobs. posix_spawnp is available on Linux and macOS jobs, but glibc is too old on the Linux for subprocess.

Linux:

# configure
checking for posix_spawn... yes
checking for posix_spawnp... yes

# pythoninfo
platform.libc_ver: glibc 2.19
subprocess._USE_POSIX_SPAWN: False

macOS:

# configure
checking for posix_spawn... yes
checking for posix_spawnp... yes

# pythoninfo
platform.platform: macOS-10.13.3-x86_64-i386-64bit
subprocess._USE_POSIX_SPAWN: True

@vstinner vstinner merged commit 92b8322 into python:master Jan 16, 2019
@vstinner

Copy link
Copy Markdown
Member

Well done @nanjekyejoannah :-) Thanks to Joannah for this nice enhancement and to all reviewers.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants