[Xfce4-commits] <xfce4-panel:master> Gracefully handle abort signal (bug #6563).
Nick Schermer
noreply at xfce.org
Sat Nov 20 13:06:01 CET 2010
Updating branch refs/heads/master
to 3f093188dddf4a8643e20de10a23be26a66b8581 (commit)
from 61f636af4e66d271f5fd10aec6756c067e39333c (commit)
commit 3f093188dddf4a8643e20de10a23be26a66b8581
Author: Nick Schermer <nick at xfce.org>
Date: Sat Nov 20 12:40:42 2010 +0100
Gracefully handle abort signal (bug #6563).
Also print a log line about the signal we receive.
panel/main.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/panel/main.c b/panel/main.c
index 79a9efe..be66e85 100644
--- a/panel/main.c
+++ b/panel/main.c
@@ -120,6 +120,10 @@ callback_handler (const gchar *name,
static void
signal_handler_quit (gint signum)
{
+ panel_debug (PANEL_DEBUG_DOMAIN_MAIN,
+ "received signal %s <%d>, quiting panel",
+ g_strsignal (signum), signum);
+
panel_dbus_service_exit_panel (FALSE);
}
@@ -134,7 +138,7 @@ main (gint argc, gchar **argv)
PanelDBusService *dbus_service;
gboolean succeed = FALSE;
guint i;
- const gint signums[] = { SIGHUP, SIGINT, SIGQUIT, SIGTERM };
+ const gint signums[] = { SIGHUP, SIGINT, SIGQUIT, SIGTERM, SIGABRT };
const gchar *error_msg;
XfceSMClient *sm_client;
More information about the Xfce4-commits
mailing list