From: gatecat Date: Wed, 16 Jun 2021 11:34:36 +0000 (+0100) Subject: pyosys: Clear SIGINT handler after Python loads X-Git-Tag: yosys-0.10~129^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d88bea18b5a536935cdef2c5ca77e01b4daf8ac;p=yosys.git pyosys: Clear SIGINT handler after Python loads Signed-off-by: gatecat --- diff --git a/kernel/yosys.cc b/kernel/yosys.cc index cb6fdc2f4..f543447bd 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -71,6 +71,7 @@ #include #include +#include YOSYS_NAMESPACE_BEGIN @@ -540,6 +541,7 @@ void yosys_setup() PyImport_AppendInittab((char*)"libyosys", INIT_MODULE); Py_Initialize(); PyRun_SimpleString("import sys"); + signal(SIGINT, SIG_DFL); #endif Pass::init_register();