]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] [doc] Make subprocess.wait documentation more precise (GH-98700) (GH-112153)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 25 Dec 2023 18:27:06 +0000 (19:27 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Dec 2023 18:27:06 +0000 (20:27 +0200)
commitc0e58168e2e1dbc025dfe9c70e5d8a4392c78141
tree4353032458cd119f37d239582d57df29cc04ee39
parent78ccb41c568c7a84ec1a038a297ef4bd3f042d49
[3.12] [doc] Make subprocess.wait documentation more precise (GH-98700) (GH-112153)

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