[gnome-settings-daemon] daemon: add debugging information for shutdown path
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] daemon: add debugging information for shutdown path
- Date: Tue, 23 Nov 2010 05:18:55 +0000 (UTC)
commit ef8bf0c66201b63f45ee1fc9ac534553305fda6f
Author: William Jon McCann <jmccann redhat com>
Date: Tue Nov 23 00:18:16 2010 -0500
daemon: add debugging information for shutdown path
gnome-settings-daemon/main.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gnome-settings-daemon/main.c b/gnome-settings-daemon/main.c
index a6bc26c..2c6ba54 100644
--- a/gnome-settings-daemon/main.c
+++ b/gnome-settings-daemon/main.c
@@ -58,6 +58,7 @@ static GOptionEntry entries[] = {
static gboolean
timed_exit_cb (void)
{
+ g_debug ("Doing timed exit");
gtk_main_quit ();
return FALSE;
}
@@ -70,6 +71,7 @@ on_session_over (GDBusProxy *proxy,
gpointer user_data)
{
if (g_strcmp0 (signal_name, "SessionOver") == 0) {
+ g_debug ("Got a SessionOver signal - stopping");
gnome_settings_manager_stop (manager);
gtk_main_quit ();
}
@@ -104,6 +106,7 @@ on_term_signal_pipe_closed (GIOChannel *source,
term_signal_pipe_fds[0] = -1;
+ g_debug ("Received SIGTERM - shutting down");
/* Got SIGTERM, time to clean up and get out
*/
gtk_main_quit ();
@@ -172,6 +175,7 @@ name_lost_handler (GDBusConnection *connection,
gpointer user_data)
{
/* Name was already taken, or the bus went away */
+ g_debug ("Name taken or bus went away - shutting down");
gtk_main_quit ();
}
@@ -301,6 +305,8 @@ main (int argc, char *argv[])
gtk_main ();
+ g_debug ("Shutting down");
+
out:
if (name_id > 0) {
g_bus_unown_name (name_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]