mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-25 08:28:40 +01:00
bug: added std::signal for proper handling of ctr+c
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user