summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-11-17 21:23:18 (GMT)
committerGitHub <noreply@github.com>2020-11-17 21:23:18 (GMT)
commita702bd4b921167e73f8fc987aa64ada571fdc3f8 (patch)
tree07dd56d507c200b11eb55a1baf03459d7eb317b1 /Include
parent545dcb178e8e56678f5f630799082d7ac0c7c31d (diff)
downloadcpython-a702bd4b921167e73f8fc987aa64ada571fdc3f8.zip
cpython-a702bd4b921167e73f8fc987aa64ada571fdc3f8.tar.gz
cpython-a702bd4b921167e73f8fc987aa64ada571fdc3f8.tar.bz2
bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347) (GH-23349)
bpo-41686, bpo-41713: On Windows, the SIGINT event, _PyOS_SigintEvent(), is now created even if Python is configured to not install signal handlers (PyConfig.install_signal_handlers=0 or Py_InitializeEx(0)). (cherry picked from commit 05a5d697f4f097f37c5c1e2ed0e2338a33c3fb6a)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_pylifecycle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h
index d4f0ae2..c237b1d 100644
--- a/Include/internal/pycore_pylifecycle.h
+++ b/Include/internal/pycore_pylifecycle.h
@@ -69,6 +69,8 @@ extern void PyList_Fini(void);
extern void PySet_Fini(void);
extern void PyBytes_Fini(void);
extern void PyFloat_Fini(void);
+
+extern int _PySignal_Init(int install_signal_handlers);
extern void PyOS_FiniInterrupts(void);
extern void PySlice_Fini(void);
extern void PyAsyncGen_Fini(void);