diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-01-19 08:10:17 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-01-19 08:10:17 +0100 |
commit | 70c1012e91270d1294c58a232767f8eb2b60b6a7 (patch) | |
tree | e447df26a1f66b2cc7c8e5b57fb34f3338f424b3 | |
parent | 42ee408d0f9dbeafcfb59ff71b0fa080d4902608 (diff) |
Bind the right signal (int not term)
-rw-r--r-- | source/rofi.c | 4 |
1 files 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 ); |