diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-26 21:28:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 21:28:11 (GMT) |
commit | 728189884e0e128c4ffc57b785b04584d57a90c0 (patch) | |
tree | 4060b7e3260bc8ff4fdbec68f8a11d7e70b05f19 /Include/internal | |
parent | 08faf0016e1ee590c78f64ddb244767c7801866a (diff) | |
download | cpython-728189884e0e128c4ffc57b785b04584d57a90c0.zip cpython-728189884e0e128c4ffc57b785b04584d57a90c0.tar.gz cpython-728189884e0e128c4ffc57b785b04584d57a90c0.tar.bz2 |
bpo-38644: Pass tstate explicitly in signalmodule.c (GH-19184)
PyOS_InterruptOccurred() now checks _Py_ThreadCanHandleSignals()
before checking if SIGINT is tripped.
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_pyerrors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h index f3aa3e8..bae1056 100644 --- a/Include/internal/pycore_pyerrors.h +++ b/Include/internal/pycore_pyerrors.h @@ -65,6 +65,8 @@ PyAPI_FUNC(PyObject *) _PyErr_FormatFromCauseTstate( const char *format, ...); +PyAPI_FUNC(int) _PyErr_CheckSignalsTstate(PyThreadState *tstate); + #ifdef __cplusplus } #endif |