diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2006-09-01 20:47:09 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2006-09-01 20:47:09 +0000 |
commit | ee6964d6a0e4fe82f838d8d352d3c57aea773047 (patch) | |
tree | a19139893567b1db7d1fd2c3a19ae4462eafd29d /tools | |
parent | afc2a6e56a65ff9154d4eb1b346157a7d625945d (diff) |
* tools/dbus-launch.c: Add a sigterm handler (patch from Frederic Crozat
<fcrozat at mandriva dot com>)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dbus-launch.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |