summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-15 02:46:26 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-15 02:46:26 +0200
commitfb1af5b0fe8e1530008bc0545b6a2e042e84c15f (patch)
tree08009f6b8e39e837b3a096da9b1a34c95a082336 /src
parentcf3e247193b49c1907dd85b74f0de1530948016c (diff)
initctl: make sure we don't exit due to dbus disconnect
Diffstat (limited to 'src')
-rw-r--r--src/initctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/initctl.c b/src/initctl.c
index 9872437aa9..34c38839df 100644
--- a/src/initctl.c
+++ b/src/initctl.c
@@ -230,8 +230,10 @@ static void server_done(Server *s) {
if (s->epoll_fd >= 0)
close_nointr_nofail(s->epoll_fd);
- if (s->bus)
- dbus_connection_unref(s->bus);
+ if (s->bus) {
+ dbus_connection_set_exit_on_disconnect(s->bus, FALSE);
+ dbus_connection_unref(s->bus);
+ }
}
static int server_init(Server *s, unsigned n_sockets) {