mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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
This commit is contained in:
parent
06babb2422
commit
64d6cc826d
4 changed files with 39 additions and 9 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue