mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-07 02:23:09 +02:00
pyosys: Clear SIGINT handler after Python loads
Signed-off-by: gatecat <[email protected]>
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user