[gnome-session] main: Make SIGUSR2 print a line in the debug output



commit e9198a010233eeea90d08a652d21125cb903db9b
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jan 21 22:45:52 2013 +0100

    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

 gnome-session/main.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gnome-session/main.c b/gnome-session/main.c
index c1f3ead..9d90800 100644
--- a/gnome-session/main.c
+++ b/gnome-session/main.c
@@ -183,6 +183,13 @@ term_or_int_signal_cb (gpointer data)
 }
 
 static gboolean
+sigusr2_cb (gpointer data)
+{
+        g_debug ("-------- MARK --------");
+        return TRUE;
+}
+
+static gboolean
 sigusr1_cb (gpointer data)
 {
         gdm_log_toggle_debug ();
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]