[issue40912] _PyOS_SigintEvent is never closed on Windows
STINNER Victor
report at bugs.python.org
Mon Aug 9 09:14:27 EDT 2021
STINNER Victor <vstinner at python.org> added the comment:
Fixed by bpo-41686:
commit 0ae323b87f1bed64a7fa70f5a41a5800aca032cc
Author: Victor Stinner <vstinner at python.org>
Date: Tue Nov 17 18:15:20 2020 +0100
bpo-41686: Always create the SIGINT event on Windows (GH-23344)
bpo-41686, bpo-41713: On Windows, the SIGINT event,
_PyOS_SigintEvent(), is now created even if Python is configured to
not install signal handlers (PyConfig.install_signal_handlers=0 or
Py_InitializeEx(0)).
Changes:
* Move global variables initialization from signal_exec() to
_PySignal_Init() to clarify that they are global variables cleared
by _PySignal_Fini().
* _PySignal_Fini() now closes sigint_event.
* IntHandler is no longer a global variable.
----------
resolution: -> fixed
stage: needs patch -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40912>
_______________________________________
More information about the Python-bugs-list
mailing list