From 70c1012e91270d1294c58a232767f8eb2b60b6a7 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 19 Jan 2016 08:10:17 +0100 Subject: [PATCH] Bind the right signal (int not term) --- source/rofi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/rofi.c b/source/rofi.c index a350236c..5a8af94c 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -2205,7 +2205,7 @@ static gboolean main_loop_signal_handler_hup ( G_GNUC_UNUSED gpointer data ) XFlush ( display ); return G_SOURCE_CONTINUE; } -static gboolean main_loop_signal_handler_term ( G_GNUC_UNUSED gpointer data ) +static gboolean main_loop_signal_handler_int ( G_GNUC_UNUSED gpointer data ) { // Break out of loop. g_main_loop_quit ( main_loop ); @@ -2469,7 +2469,7 @@ int main ( int argc, char *argv[] ) // SIGHup signal. g_unix_signal_add ( SIGHUP, main_loop_signal_handler_hup, NULL ); // SIGTERM - g_unix_signal_add ( SIGTERM, main_loop_signal_handler_term, NULL ); + g_unix_signal_add ( SIGINT, main_loop_signal_handler_int, NULL ); // SIGUSR1 g_unix_signal_add ( SIGUSR1, main_loop_signal_handler_usr1, NULL );