diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-01-17 15:53:15 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-01-17 16:12:38 +0100 |
commit | 92e31da10065b6eadb06f6f92e386b97a0058f28 (patch) | |
tree | a5f9d5c5421639980da9ea69504f9765d255a7ec /src/machine | |
parent | bd62b7448623fbe36665e089977731efb55524c0 (diff) | |
download | systemd-92e31da10065b6eadb06f6f92e386b97a0058f28.tar.gz systemd-92e31da10065b6eadb06f6f92e386b97a0058f28.tar.bz2 systemd-92e31da10065b6eadb06f6f92e386b97a0058f28.zip |
tree-wide: make sure to flush/close all bus connections when our daemons exit
Let's make sure everything is written out ebfore we exit, so that no
messages keep our bus connections referenced.
Fixes: #11462
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machined.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machined.c b/src/machine/machined.c index 9f23e369a4..0b92b1c6ee 100644 --- a/src/machine/machined.c +++ b/src/machine/machined.c @@ -81,7 +81,7 @@ static Manager* manager_unref(Manager *m) { bus_verify_polkit_async_registry_free(m->polkit_registry); - sd_bus_unref(m->bus); + sd_bus_flush_close_unref(m->bus); sd_event_unref(m->event); return mfree(m); |