diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-04 09:41:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 09:41:43 (GMT) |
commit | c9ce983ae1a361f431a0303aeb6f4b8e1d674275 (patch) | |
tree | e5e6dae3885a270ffeea975ff03462c186af68c9 /Include/internal/pycore_signal.h | |
parent | 8a73b57b9b5f6e36dd5a4c279f4d606d9e71a31f (diff) | |
download | cpython-c9ce983ae1a361f431a0303aeb6f4b8e1d674275.zip cpython-c9ce983ae1a361f431a0303aeb6f4b8e1d674275.tar.gz cpython-c9ce983ae1a361f431a0303aeb6f4b8e1d674275.tar.bz2 |
gh-106320: Remove private pylifecycle.h functions (#106400)
Remove private pylifecycle.h functions: move them to the internal C
API ( pycore_atexit.h, pycore_pylifecycle.h and pycore_signal.h). No
longer export most of these functions.
Move _testcapi.test_atexit() to _testinternalcapi.
Diffstat (limited to 'Include/internal/pycore_signal.h')
-rw-r--r-- | Include/internal/pycore_signal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/internal/pycore_signal.h b/Include/internal/pycore_signal.h index ca3f69d..1a454ba 100644 --- a/Include/internal/pycore_signal.h +++ b/Include/internal/pycore_signal.h @@ -11,10 +11,12 @@ extern "C" { #endif #include "pycore_atomic.h" // _Py_atomic_address - #include <signal.h> // NSIG +/* Restore signals that the interpreter has called SIG_IGN on to SIG_DFL. */ +PyAPI_FUNC(void) _Py_RestoreSignals(void); + #ifdef _SIG_MAXSIG // gh-91145: On FreeBSD, <signal.h> defines NSIG as 32: it doesn't include // realtime signals: [SIGRTMIN,SIGRTMAX]. Use _SIG_MAXSIG instead. For |