mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -05:00
Bind the right signal (int not term)
This commit is contained in:
parent
42ee408d0f
commit
70c1012e91
1 changed files with 2 additions and 2 deletions
|
@ -2205,7 +2205,7 @@ static gboolean main_loop_signal_handler_hup ( G_GNUC_UNUSED gpointer data )
|
||||||
XFlush ( display );
|
XFlush ( display );
|
||||||
return G_SOURCE_CONTINUE;
|
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.
|
// Break out of loop.
|
||||||
g_main_loop_quit ( main_loop );
|
g_main_loop_quit ( main_loop );
|
||||||
|
@ -2469,7 +2469,7 @@ int main ( int argc, char *argv[] )
|
||||||
// SIGHup signal.
|
// SIGHup signal.
|
||||||
g_unix_signal_add ( SIGHUP, main_loop_signal_handler_hup, NULL );
|
g_unix_signal_add ( SIGHUP, main_loop_signal_handler_hup, NULL );
|
||||||
// SIGTERM
|
// SIGTERM
|
||||||
g_unix_signal_add ( SIGTERM, main_loop_signal_handler_term, NULL );
|
g_unix_signal_add ( SIGINT, main_loop_signal_handler_int, NULL );
|
||||||
// SIGUSR1
|
// SIGUSR1
|
||||||
g_unix_signal_add ( SIGUSR1, main_loop_signal_handler_usr1, NULL );
|
g_unix_signal_add ( SIGUSR1, main_loop_signal_handler_usr1, NULL );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue