summaryrefslogtreecommitdiffstats
path: root/Python/frame.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-10-24 16:03:50 (GMT)
committerGitHub <noreply@github.com>2024-10-24 16:03:50 (GMT)
commitad6110a93ffa82cae71af6c78692de065d3871b5 (patch)
treef0a94632be42d09167a811f655beb0d7c147b180 /Python/frame.c
parente545ead66ce725aae6fb0ad5d733abe806c19750 (diff)
downloadcpython-ad6110a93ffa82cae71af6c78692de065d3871b5.zip
cpython-ad6110a93ffa82cae71af6c78692de065d3871b5.tar.gz
cpython-ad6110a93ffa82cae71af6c78692de065d3871b5.tar.bz2
gh-125842: Fix `sys.exit(0xffff_ffff)` on Windows (#125896)
On Windows, `long` is a signed 32-bit integer so it can't represent `0xffff_ffff` without overflow. Windows exit codes are unsigned 32-bit integers, so if a child process exits with `-1`, it will be represented as `0xffff_ffff`. Also fix a number of other possible cases where `_Py_HandleSystemExit` could return with an exception set, leading to a `SystemError` (or fatal error in debug builds) later on during shutdown.
Diffstat (limited to 'Python/frame.c')
0 files changed, 0 insertions, 0 deletions