Skip to content
Snippets Groups Projects
Commit 49a42173 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Double ctrl-c fast exit

parent ea7d3062
No related branches found
No related tags found
No related merge requests found
Pipeline #12730 passed
......@@ -437,9 +437,14 @@ static void process_options(Configurable *root, const map<string, string> &opts)
}
}
static bool sig_int_called = false;
static void signalIntHandler( int signum ) {
std::cout << "Closing...\n";
if (sig_int_called) quick_exit(-1);
sig_int_called = true;
// cleanup and close up stuff here
// terminate program
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment