mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-25 07:00:09 +01:00
Bug 23977 - dbus-launch --exit-with-session not killing dbus-daemon on SIGINT
Handle SIGINT in the same way we handle SIGTERM.
This commit is contained in:
parent
be89ffacc9
commit
9b2c196ef3
1 changed files with 2 additions and 0 deletions
|
|
@ -405,6 +405,7 @@ signal_handler (int sig)
|
|||
#ifdef SIGHUP
|
||||
case SIGHUP:
|
||||
#endif
|
||||
case SIGINT:
|
||||
case SIGTERM:
|
||||
got_sighup = TRUE;
|
||||
break;
|
||||
|
|
@ -429,6 +430,7 @@ kill_bus_when_session_ends (void)
|
|||
act.sa_flags = 0;
|
||||
sigaction (SIGHUP, &act, NULL);
|
||||
sigaction (SIGTERM, &act, NULL);
|
||||
sigaction (SIGINT, &act, NULL);
|
||||
|
||||
#ifdef DBUS_BUILD_X11
|
||||
x11_init();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue