From: Lennart Poettering Date: Tue, 15 Jun 2010 00:46:26 +0000 (+0200) Subject: initctl: make sure we don't exit due to dbus disconnect X-Git-Tag: v1~202 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb1af5b0fe8e1530008bc0545b6a2e042e84c15f;p=systemd initctl: make sure we don't exit due to dbus disconnect --- diff --git a/src/initctl.c b/src/initctl.c index 9872437a..34c38839 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) {