Skip to content
Snippets Groups Projects
Commit effbbb50 authored by deuce's avatar deuce
Browse files

Interrupt syscalls on break_handler() signals.

parent 50c97014
No related branches found
No related tags found
No related merge requests found
......@@ -1358,8 +1358,11 @@ int main(int argc, char **argv, char** env)
SetConsoleCtrlHandler(ControlHandler, TRUE /* Add */);
#elif defined(__unix__)
signal(SIGQUIT,break_handler);
siginterrupt(SIGQUIT, 1);
signal(SIGINT,break_handler);
siginterrupt(SIGINT, 1);
signal(SIGTERM,break_handler);
siginterrupt(SIGTERM, 1);
signal(SIGHUP,recycle_handler);
......
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