From: Marcus Comstedt Date: Fri, 4 Dec 2015 21:36:17 +0000 (+0100) Subject: init: Don't let Python override signal handlers X-Git-Tag: libsigrokdecode-0.4.0~17 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=45883c6b54839988850d5fb3d6fdbedab0011ced;p=libsigrokdecode.git init: Don't let Python override signal handlers This fixes bug #461. --- diff --git a/srd.c b/srd.c index 7b18c9a..2947ca8 100644 --- a/srd.c +++ b/srd.c @@ -157,7 +157,7 @@ SRD_API int srd_init(const char *path) PyImport_AppendInittab("sigrokdecode", PyInit_sigrokdecode); /* Initialize the Python interpreter. */ - Py_Initialize(); + Py_InitializeEx(0); /* Locations relative to the XDG system data directories. */ sys_datadirs = g_get_system_data_dirs();