]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19637)
authorVictor Stinner <vstinner@python.org>
Wed, 22 Apr 2020 14:30:35 +0000 (16:30 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Apr 2020 14:30:35 +0000 (16:30 +0200)
commit9bee32b34e4fb3e67a88bf14d38153851d4c4598
treec169f63fa285210ff9a384974c91bf23ec1bd41e
parentbcc136ba892e62078a67ad0ca0b34072ec9c88aa
bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19637)

Fix the Windows implementation of os.waitpid() for exit code
larger than "INT_MAX >> 8". The exit status is now interpreted as an
unsigned number.

os.waitstatus_to_exitcode() now accepts wait status larger than
INT_MAX.
Lib/test/test_os.py
Misc/NEWS.d/next/Library/2020-04-22-00-05-10.bpo-40138.i_oGqa.rst [new file with mode: 0644]
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c