summaryrefslogtreecommitdiff
path: root/src/stdio-bridge
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-01-17 15:53:15 +0100
committerLennart Poettering <lennart@poettering.net>2019-01-17 16:12:38 +0100
commit92e31da10065b6eadb06f6f92e386b97a0058f28 (patch)
treea5f9d5c5421639980da9ea69504f9765d255a7ec /src/stdio-bridge
parentbd62b7448623fbe36665e089977731efb55524c0 (diff)
downloadsystemd-92e31da10065b6eadb06f6f92e386b97a0058f28.tar.gz
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')
-rw-r--r--src/stdio-bridge/stdio-bridge.c2
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;