Skip to content

[3.12] [doc] Make subprocess.wait documentation more precise (GH-98700) #112153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 25, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 16, 2023

[doc] Make subprocess.wait doc more precise

An active loop is only used when the timeout parameter is used on
POSIX.

When no timeout is used, the code calls os.waitpid internally (which puts
the process on a sleep status). On Windows, the internal Windows API
call accepts a timeout parameter, so that is delegated to the OS.
(cherry picked from commit 81ab0e8)

Co-authored-by: Luis Pedro Coelho luis@luispedro.org


📚 Documentation preview 📚: https://cpython-previews--112153.org.readthedocs.build/

[doc] Make subprocess.wait doc more precise

An active loop is only used when the `timeout` parameter is used on
POSIX.

When no timeout is used, the code calls `os.waitpid` internally (which puts
the process on a sleep status). On Windows, the internal Windows API
call accepts a timeout parameter, so that is delegated to the OS.
(cherry picked from commit 81ab0e8)

Co-authored-by: Luis Pedro Coelho <luis@luispedro.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants