diff --git a/src/lib_python_interop/python_interop/plugin_manager.cpp b/src/lib_python_interop/python_interop/plugin_manager.cpp index f227cda80..c4864a339 100644 --- a/src/lib_python_interop/python_interop/plugin_manager.cpp +++ b/src/lib_python_interop/python_interop/plugin_manager.cpp @@ -105,6 +105,8 @@ struct __attribute__((visibility("hidden"))) PluginManager_Impl { sd.import("bybit_md_provider"); sd.import("bybit_execution_gateway"); py::gil_scoped_release gil_rel; + // Don't let python handle the signals (otherwise it'll hang on ctrl+c) + std::signal(SIGINT, SIG_DFL); Stopwatch sw; int n = 0; while (keep_going) {