Commit bbb06c9d authored by Tristan Matthews's avatar Tristan Matthews

* #12189: gnome: restore default signal handlers rather than calling exit()

parent a2317af5
......@@ -46,12 +46,12 @@
static void
signal_handler(int code)
{
static int handled_signals;
if (handled_signals++) {
fprintf(stderr, "Caught another signal %s, exiting rudely!\n", strsignal(code));
exit(EXIT_FAILURE);
}
printf("Caught signal %s, terminating...\n", strsignal(code));
// Unset signal handlers
signal(SIGHUP, SIG_DFL);
signal(SIGINT, SIG_DFL);
signal(SIGTERM, SIG_DFL);
printf("Caught signal %s, quitting...\n", strsignal(code));
sflphone_quit(TRUE);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment