From 745c262568751ac8bbacc293a739e03753a1c378 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 15 Feb 2011 12:24:05 -0600 Subject: [PATCH] Revert "core: don't trap SIGINT" This reverts commit 3a47e57f680f8290acf08be96d2ec414065dbb08. Forgot Ctl+C does SIGINT, which we use a ton when developing. Oops! --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 3889606f52..39e03de21c 100644 --- a/src/main.c +++ b/src/main.c @@ -173,6 +173,7 @@ nm_signal_handler (int signo) g_main_loop_quit (main_loop); break; + case SIGINT: case SIGTERM: /* let the fatal signals interrupt us */ --in_fatal; @@ -213,6 +214,7 @@ setup_signals (void) action.sa_mask = mask; action.sa_flags = 0; sigaction (SIGTERM, &action, NULL); + sigaction (SIGINT, &action, NULL); sigaction (SIGILL, &action, NULL); sigaction (SIGBUS, &action, NULL); sigaction (SIGFPE, &action, NULL);