mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
update-utmp: flush and close the bus used for connections after use
This commit is contained in:
parent
f0960da0fa
commit
f0792aae43
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user