diff options
author | Marcus Comstedt <marcus@mc.pp.se> | 2015-12-04 22:36:17 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2015-12-07 17:03:37 +0100 |
commit | 45883c6b54839988850d5fb3d6fdbedab0011ced (patch) | |
tree | 68e2af66264908232664dc0631cf5202a5265078 /srd.c | |
parent | 502acfc2c71a2bbc97d4d7597150cd479bead1ee (diff) | |
download | libsigrokdecode-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |