diff options
author | Victor Stinner <vstinner@python.org> | 2020-11-17 16:22:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 16:22:23 +0100 |
commit | 296a796951032f678d063008f588ccc6958d0df1 (patch) | |
tree | 91fa9ac02ef9786aeb741d13d07a0cd027d34d02 /Include | |
parent | bpo-40637: Don't test builtin PBKDF2 without builtin hashes (GH-20980) (diff) | |
download | cpython-296a796951032f678d063008f588ccc6958d0df1.tar.gz cpython-296a796951032f678d063008f588ccc6958d0df1.tar.bz2 cpython-296a796951032f678d063008f588ccc6958d0df1.zip |
bpo-41713: Remove PyOS_InitInterrupts() function (GH-23342)
Remove the undocumented PyOS_InitInterrupts() C function.
* Rename PyOS_InitInterrupts() to _PySignal_Init(). It now installs
other signal handlers, not only SIGINT.
* Rename PyOS_FiniInterrupts() to _PySignal_Fini()
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_pylifecycle.h | 3 | ||||
-rw-r--r-- | Include/intrcheck.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index e748112cbf7..b691e632578 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -68,7 +68,8 @@ extern void _PyFloat_Fini(PyThreadState *tstate); extern void _PySlice_Fini(PyThreadState *tstate); extern void _PyAsyncGen_Fini(PyThreadState *tstate); -extern void PyOS_FiniInterrupts(void); +extern int _PySignal_Init(int install_signal_handlers); +extern void _PySignal_Fini(void); extern void _PyExc_Fini(PyThreadState *tstate); extern void _PyImport_Fini(void); diff --git a/Include/intrcheck.h b/Include/intrcheck.h index 88f2a7076ce..b8cc6560168 100644 --- a/Include/intrcheck.h +++ b/Include/intrcheck.h @@ -5,7 +5,6 @@ extern "C" { #endif PyAPI_FUNC(int) PyOS_InterruptOccurred(void); -PyAPI_FUNC(void) PyOS_InitInterrupts(void); #ifdef HAVE_FORK #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000 PyAPI_FUNC(void) PyOS_BeforeFork(void); |