fixed: disable python SIGINT signal handler for the embedded interpreter
This commit is contained in:
parent
4b7cf09b75
commit
bf7171f7c7
@ -82,6 +82,8 @@ PythonInterp::PythonInterp(bool enable) {
|
||||
throw std::logic_error("An instance of the Python interpreter is already running");
|
||||
|
||||
this->guard = std::make_unique<py::scoped_interpreter>();
|
||||
py::exec(R"~~(import signal
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL))~~");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user