Commit e9198a01 authored by Bastien Nocera's avatar Bastien Nocera

main: Make SIGUSR2 print a line in the debug output

To make it easier to find specific events in the debug output.

https://bugzilla.gnome.org/show_bug.cgi?id=692241
parent 71b5aa81
......@@ -182,6 +182,13 @@ term_or_int_signal_cb (gpointer data)
return FALSE;
}
static gboolean
sigusr2_cb (gpointer data)
{
g_debug ("-------- MARK --------");
return TRUE;
}
static gboolean
sigusr1_cb (gpointer data)
{
......@@ -340,6 +347,7 @@ main (int argc, char **argv)
g_unix_signal_add (SIGTERM, term_or_int_signal_cb, manager);
g_unix_signal_add (SIGINT, term_or_int_signal_cb, manager);
g_unix_signal_add (SIGUSR1, sigusr1_cb, manager);
g_unix_signal_add (SIGUSR2, sigusr2_cb, manager);
if (IS_STRING_EMPTY (opt_session_name))
session_name = _gsm_manager_get_default_session (manager);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment