From: Lennart Poettering Date: Thu, 24 Sep 2015 11:34:08 +0000 (+0200) Subject: update-utmp: flush and close the bus used for connections after use X-Git-Tag: v227~62^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0792aae430562a59f95d8ec3d9773cbeb032f43;p=thirdparty%2Fsystemd.git update-utmp: flush and close the bus used for connections after use --- diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c index 22ef79165ac..bcabf65a36d 100644 --- a/src/update-utmp/update-utmp.c +++ b/src/update-utmp/update-utmp.c @@ -279,6 +279,6 @@ finish: audit_close(c.audit_fd); #endif - sd_bus_unref(c.bus); + sd_bus_flush_close_unref(c.bus); return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS; }