]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] [doc] Make subprocess.wait documentation more precise (GH-98700) (#112154)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 13 Dec 2023 20:01:36 +0000 (21:01 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Dec 2023 20:01:36 +0000 (12:01 -0800)
commitf35322502abae4fc55285e140059d4efa3a9d58c
tree8b995eb904aa8dff20e83193057742d9133c4bac
parent4c45927c3f6b711585557ccc47a83491a7f958bc
[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>
Doc/library/subprocess.rst