From b6470b0d08aa9aff21fca67f92ec2ffddb4e869e Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 16 Feb 2026 10:48:35 +0100 Subject: [PATCH] bug: added std::signal for proper handling of ctr+c --- slsDetectorServers/matterhonServer/src/MatterhornApp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slsDetectorServers/matterhonServer/src/MatterhornApp.cpp b/slsDetectorServers/matterhonServer/src/MatterhornApp.cpp index c24fc1688..43381ff26 100644 --- a/slsDetectorServers/matterhonServer/src/MatterhornApp.cpp +++ b/slsDetectorServers/matterhonServer/src/MatterhornApp.cpp @@ -53,6 +53,9 @@ int main(int argc, char *argv[]) { return EXIT_SUCCESS; } + // Register Ctrl+C handler + std::signal(SIGINT, sigInterruptHandler); + // LOG(sls::logINFOBLUE) << "Current Process [ Tid: " << gettid() << " ]"; // handle locally on socket crash