From: Christian Dywan Date: Mon, 7 Dec 2009 19:10:33 +0000 (+0100) Subject: Allow Ctrl+C to break normally while still handling it well X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fadd0f31c2cd3e027870a3c0c931c864ad4d84b7;p=midori Allow Ctrl+C to break normally while still handling it well --- diff --git a/midori/main.c b/midori/main.c index bfccfaec..961ef2ca 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1576,8 +1576,10 @@ midori_remove_config_file (gint clear_prefs, static void signal_handler (int signal_id) { + signal (signal_id, 0); midori_app_quit_cb (NULL); - gtk_main_quit (); + if (kill (getpid (), signal_id)) + exit (1); } #endif