diff options
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); |