diff options
author | Victor Stinner <vstinner@python.org> | 2020-11-13 13:44:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 13:44:42 (GMT) |
commit | d96a7a83133250377219227b5cfab4dbdddc5d3a (patch) | |
tree | 5f040cee144aa498889578d7a1ef12d9751c7f89 /Python/sysmodule.c | |
parent | 0cec97eb6a3e31493c29ef9398fcf39a5ec445a6 (diff) | |
download | cpython-d96a7a83133250377219227b5cfab4dbdddc5d3a.zip cpython-d96a7a83133250377219227b5cfab4dbdddc5d3a.tar.gz cpython-d96a7a83133250377219227b5cfab4dbdddc5d3a.tar.bz2 |
bpo-42296: On Windows, fix CTRL+C regression (GH-23257)
On Windows, fix a regression in signal handling which prevented to
interrupt a program using CTRL+C. The signal handler can be run in a
thread different than the Python thread, in which case the test
deciding if the thread can handle signals is wrong.
On Windows, _PyEval_SignalReceived() now always sets eval_breaker to
1 since it cannot test _Py_ThreadCanHandleSignals(), and
eval_frame_handle_pending() always calls
_Py_ThreadCanHandleSignals() to recompute eval_breaker.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions