]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
update-utmp: flush and close the bus used for connections after use
authorLennart Poettering <lennart@poettering.net>
Thu, 24 Sep 2015 11:34:08 +0000 (13:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2015 19:55:52 +0000 (21:55 +0200)
src/update-utmp/update-utmp.c

index 22ef79165acd816137f3e0c65f3b06bd46d8f05c..bcabf65a36dd89dec25486c76022553e766c704d 100644 (file)
@@ -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;
 }