]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41686: Always create the SIGINT event on Windows (GH-23344)
authorVictor Stinner <vstinner@python.org>
Tue, 17 Nov 2020 17:15:20 +0000 (18:15 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Nov 2020 17:15:20 +0000 (18:15 +0100)
commit0ae323b87f1bed64a7fa70f5a41a5800aca032cc
tree2aa675a3ee9e6f29d1440a84eb15559074da2460
parenta1f401a58b213e400fbd8f0fa8dc5260a2389dab
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.
Misc/NEWS.d/next/Core and Builtins/2020-11-17-16-25-50.bpo-41686.hX77kL.rst [new file with mode: 0644]
Modules/signalmodule.c