chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf3e247
)
initctl: make sure we don't exit due to dbus disconnect
author
Lennart Poettering
<lennart@poettering.net>
Tue, 15 Jun 2010 00:46:26 +0000
(
02:46
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 15 Jun 2010 00:46:26 +0000
(
02:46
+0200)
src/initctl.c
patch
|
blob
|
history
diff --git
a/src/initctl.c
b/src/initctl.c
index 9872437aa938855e91bad8fd22fac2ddaf7f529f..34c38839df3a08255a4ff7a6816d3a7bb750be2e 100644
(file)
--- 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) {