summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-09-01 20:47:09 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-09-01 20:47:09 +0000
commitee6964d6a0e4fe82f838d8d352d3c57aea773047 (patch)
treea19139893567b1db7d1fd2c3a19ae4462eafd29d
parentafc2a6e56a65ff9154d4eb1b346157a7d625945d (diff)
* tools/dbus-launch.c: Add a sigterm handler (patch from Frederic Crozat
<fcrozat at mandriva dot com>)
-rw-r--r--ChangeLog5
-rw-r--r--tools/dbus-launch.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5fde3c1d..1658e70f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-01 John (J5) Palmieri <johnp@redhat.com>
+
+ * tools/dbus-launch.c: Add a sigterm handler (patch from Frederic Crozat
+ <fcrozat at mandriva dot com>)
+
2006-08-29 Havoc Pennington <hp@redhat.com>
* test/test-service.c (path_message_func): fix lack of return value
diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c
index 3004099c..18a6d156 100644
--- a/tools/dbus-launch.c
+++ b/tools/dbus-launch.c
@@ -311,6 +311,7 @@ signal_handler (int sig)
switch (sig)
{
case SIGHUP:
+ case SIGTERM:
got_sighup = TRUE;
break;
}
@@ -336,6 +337,7 @@ kill_bus_when_session_ends (void)
act.sa_mask = empty_mask;
act.sa_flags = 0;
sigaction (SIGHUP, &act, NULL);
+ sigaction (SIGTERM, &act, NULL);
#ifdef DBUS_BUILD_X11
xdisplay = XOpenDisplay (NULL);