From 728189884e0e128c4ffc57b785b04584d57a90c0 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 26 Mar 2020 22:28:11 +0100 Subject: bpo-38644: Pass tstate explicitly in signalmodule.c (GH-19184) PyOS_InterruptOccurred() now checks _Py_ThreadCanHandleSignals() before checking if SIGINT is tripped. --- Python/ceval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/ceval.c') diff --git a/Python/ceval.c b/Python/ceval.c index afaa6ff1b3..2be02a1ab6 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -597,8 +597,8 @@ handle_signals(PyThreadState *tstate) } UNSIGNAL_PENDING_SIGNALS(tstate); - if (_PyErr_CheckSignals() < 0) { - /* We're not done yet */ + if (_PyErr_CheckSignalsTstate(tstate) < 0) { + /* On failure, re-schedule a call to handle_signals(). */ SIGNAL_PENDING_SIGNALS(tstate); return -1; } -- cgit v1.2.1