summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-11-13 13:44:42 (GMT)
committerGitHub <noreply@github.com>2020-11-13 13:44:42 (GMT)
commitd96a7a83133250377219227b5cfab4dbdddc5d3a (patch)
tree5f040cee144aa498889578d7a1ef12d9751c7f89 /Misc/NEWS.d
parent0cec97eb6a3e31493c29ef9398fcf39a5ec445a6 (diff)
downloadcpython-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 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-11-13-13-53-11.bpo-42296.DuGrLJ.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-11-13-13-53-11.bpo-42296.DuGrLJ.rst b/Misc/NEWS.d/next/Core and Builtins/2020-11-13-13-53-11.bpo-42296.DuGrLJ.rst
new file mode 100644
index 0000000..841a26e
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-11-13-13-53-11.bpo-42296.DuGrLJ.rst
@@ -0,0 +1,4 @@
+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.