diff options
author | William Jon McCann <jmccann@redhat.com> | 2008-03-08 20:37:56 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2008-03-08 20:37:56 +0000 |
commit | 2d9b6550064a9f143df400c9ca7365ce5668c88a (patch) | |
tree | 5866e43857b60058b2d57dee28d33cfe175eaa0b /common | |
parent | 54f0a58f069bafb517ad712fa8655f3c729eccff (diff) | |
download | gdm-2d9b6550064a9f143df400c9ca7365ce5668c88a.tar.gz |
Hook up signal handler to greeter.
2008-03-08 William Jon McCann <jmccann@redhat.com>
* common/gdm-signal-handler.c: (signal_io_watch):
* gui/simple-greeter/greeter-main.c: (signal_cb), (main):
Hook up signal handler to greeter.
svn path=/trunk/; revision=5961
Diffstat (limited to 'common')
-rw-r--r-- | common/gdm-signal-handler.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/gdm-signal-handler.c b/common/gdm-signal-handler.c index 0ab8cdb4..2c46de58 100644 --- a/common/gdm-signal-handler.c +++ b/common/gdm-signal-handler.c @@ -139,7 +139,12 @@ signal_io_watch (GIOChannel *ioc, if (is_fatal) { g_debug ("GdmSignalHandler: Caught termination signal - exiting main loop"); - g_main_loop_quit (handler->priv->main_loop); + if (handler->priv->main_loop != NULL) { + g_main_loop_quit (handler->priv->main_loop); + } else { + exit (1); + } + return FALSE; } |