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/stdio-bridge/stdio-bridge.c | |
parent | sd-bus: add sd_bus_close_unref() helper (diff) | |
download | systemd-92e31da10065b6eadb06f6f92e386b97a0058f28.tar.xz 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/stdio-bridge/stdio-bridge.c')
-rw-r--r-- | src/stdio-bridge/stdio-bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio-bridge/stdio-bridge.c b/src/stdio-bridge/stdio-bridge.c index 3a21aa4aed..7060897ab7 100644 --- a/src/stdio-bridge/stdio-bridge.c +++ b/src/stdio-bridge/stdio-bridge.c @@ -91,7 +91,7 @@ static int parse_argv(int argc, char *argv[]) { } static int run(int argc, char *argv[]) { - _cleanup_(sd_bus_unrefp) sd_bus *a = NULL, *b = NULL; + _cleanup_(sd_bus_flush_close_unrefp) sd_bus *a = NULL, *b = NULL; sd_id128_t server_id; bool is_unix; int r, in_fd, out_fd; |