From 45883c6b54839988850d5fb3d6fdbedab0011ced Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Fri, 4 Dec 2015 22:36:17 +0100 Subject: init: Don't let Python override signal handlers This fixes bug #461. --- srd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srd.c') 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(); -- cgit v1.2.3-70-g09d2