summaryrefslogtreecommitdiff
path: root/srd.c
diff options
context:
space:
mode:
authorMarcus Comstedt <marcus@mc.pp.se>2015-12-04 22:36:17 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2015-12-07 17:03:37 +0100
commit45883c6b54839988850d5fb3d6fdbedab0011ced (patch)
tree68e2af66264908232664dc0631cf5202a5265078 /srd.c
parent502acfc2c71a2bbc97d4d7597150cd479bead1ee (diff)
downloadlibsigrokdecode-45883c6b54839988850d5fb3d6fdbedab0011ced.tar.gz
libsigrokdecode-45883c6b54839988850d5fb3d6fdbedab0011ced.zip
init: Don't let Python override signal handlers
This fixes bug #461.
Diffstat (limited to 'srd.c')
-rw-r--r--srd.c2
1 files changed, 1 insertions, 1 deletions
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();