fix: Prevent python plugins from intercepting kill sig
So the process actually terminates on ctrl+c
This commit is contained in:
1 parent
610861be20
commit
e60f2159e1
1 file changed
+2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user