From 15dfe2aa92d7265ea4b9aedc531fb4a3065d8b7e Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Tue, 12 Mar 2019 12:03:22 -0400 Subject: [PATCH] Python init: don't install sig handlers. Fix #5 Py_InitializeEx(0) tells the embedded interpreter to not install signal handlers. This fix is ignored by Python <3.7. See https://bugs.python.org/issue35233. --- pyIocApp/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyIocApp/setup.c b/pyIocApp/setup.c index 6d02940..8a579cd 100644 --- a/pyIocApp/setup.c +++ b/pyIocApp/setup.c @@ -114,7 +114,7 @@ static void setupPyPath(void) static void pySetupReg(void) { - Py_Initialize(); + Py_InitializeEx(0); PyEval_InitThreads(); setupPyPath();