]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[doc] Make subprocess.wait documentation more precise (#98700)
authorLuis Pedro Coelho <luis@luispedro.org>
Thu, 16 Nov 2023 13:04:46 +0000 (23:04 +1000)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2023 13:04:46 +0000 (05:04 -0800)
commit81ab0e8a4add53035c87b040afda6d554cace528
tree3de0aba0d4e757c82d8ff4aa6c28531452fba596
parent985679f05d1b72965bfbed99d1499c22815375e4
[doc] Make subprocess.wait documentation more precise (#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.
Doc/library/subprocess.rst