From fadd0f31c2cd3e027870a3c0c931c864ad4d84b7 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 7 Dec 2009 20:10:33 +0100 Subject: [PATCH] Allow Ctrl+C to break normally while still handling it well --- midori/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5