mirror of
https://github.com/python/cpython.git
synced 2024-11-30 18:51:15 +01:00
ad6110a93f
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.
3 lines
89 B
ReStructuredText
3 lines
89 B
ReStructuredText
Fix a :exc:`SystemError` when :func:`sys.exit` is called with ``0xffffffff``
|
|
on Windows.
|