]> spindle.queued.net Git - midori/commitdiff
Allow Ctrl+C to break normally while still handling it well
authorChristian Dywan <christian@twotoasts.de>
Mon, 7 Dec 2009 19:10:33 +0000 (20:10 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 7 Dec 2009 19:38:02 +0000 (20:38 +0100)
midori/main.c

index bfccfaec38ba3ce061c0efbdaf0d77b11af0cabc..961ef2ca593291df84239d6258324145d1aa01d9 100644 (file)
@@ -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