projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be89ffa
)
Bug 23977 - dbus-launch --exit-with-session not killing dbus-daemon on SIGINT
author
Sascha Silbe
<sascha-web-bugs.freedesktop.org@silbe.org>
Fri, 16 Oct 2009 19:20:43 +0000
(15:20 -0400)
committer
Colin Walters
<walters@verbum.org>
Fri, 16 Oct 2009 19:20:43 +0000
(15:20 -0400)
Handle SIGINT in the same way we handle SIGTERM.
tools/dbus-launch.c
patch
|
blob
|
history
diff --git
a/tools/dbus-launch.c
b/tools/dbus-launch.c
index
912afba
..
d3553e8
100644
(file)
--- a/
tools/dbus-launch.c
+++ b/
tools/dbus-launch.c
@@
-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();