summaryrefslogtreecommitdiff
path: root/Include/cpython/pyerrors.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2019-02-23 15:40:43 -0700
committerGitHub <noreply@github.com>2019-02-23 15:40:43 -0700
commit64d6cc826dacebc2493b1bb5e8cb97828eb76f81 (patch)
tree93185a0a288ead9ac51ccaa606cd2aae7a4e45ed /Include/cpython/pyerrors.h
parent06babb24225d41a76e4aee975380294ca1ee1d7c (diff)
downloadcpython-git-64d6cc826dacebc2493b1bb5e8cb97828eb76f81.tar.gz
bpo-35724: Explicitly require the main interpreter for signal-handling. (GH-11530)
Ensure that the main interpreter is active (in the main thread) for signal-handling operations. This is increasingly relevant as people use subinterpreters more. https://bugs.python.org/issue35724
Diffstat (limited to 'Include/cpython/pyerrors.h')
-rw-r--r--Include/cpython/pyerrors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h
index 0b43d7528b..de6548dc9c 100644
--- a/Include/cpython/pyerrors.h
+++ b/Include/cpython/pyerrors.h
@@ -133,6 +133,7 @@ PyAPI_FUNC(PyObject *) _PyErr_TrySetFromCause(
/* In signalmodule.c */
int PySignal_SetWakeupFd(int fd);
+PyAPI_FUNC(int) _PyErr_CheckSignals(void);
/* Support for adding program text to SyntaxErrors */