SIGN IN SIGN UP

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

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

[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 81ab0e8a4add53035c87b040afda6d554cace528)

Co-authored-by: Luis Pedro Coelho <luis@luispedro.org>
M
Miss Islington (bot) committed
f35322502abae4fc55285e140059d4efa3a9d58c
Parent: 4c45927
Committed by GitHub <noreply@github.com> on 12/13/2023, 8:01:36 PM