chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
service: properly handle if the main process is down and we wait for the cgroup to...
[elogind.git]
/
src
/
initctl.c
diff --git
a/src/initctl.c
b/src/initctl.c
index 6c3ec0264780a16b8184cfbe95b8ba424a84c818..10db2dda188e95eae7d6ae814a0ea8c35fb95381 100644
(file)
--- a/
src/initctl.c
+++ b/
src/initctl.c
@@
-232,8
+232,9
@@
static void server_done(Server *s) {
close_nointr_nofail(s->epoll_fd);
if (s->bus) {
- dbus_connection_close(s->bus);
- dbus_connection_unref(s->bus);
+ dbus_connection_flush(s->bus);
+ dbus_connection_close(s->bus);
+ dbus_connection_unref(s->bus);
}
}