fixed: disable python SIGINT signal handler for the embedded interpreter

This commit is contained in:
Arne Morten Kvarving 2023-03-02 15:24:25 +01:00
parent 4b7cf09b75
commit bf7171f7c7

View File

@ -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))~~");
}
}