Commit 11a0be4a authored by Tristan Matthews's avatar Tristan Matthews

* #12189: gnome: exit immediately if more than one signal is caught

This would be the case if the user hits Ctrl-C once, the application
doesn't quit, and so they hit Ctrl-C again.
parent 7fc90e44
......@@ -46,6 +46,11 @@
static void
signal_handler(int code)
static int handled_signals;
if (handled_signals++) {
fprintf(stderr, "Caught another signal %s, exitting rudely!\n", strsignal(code));
printf("Caught signal %s, terminating...\n", strsignal(code));
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