mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +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);
|
audit_close(c.audit_fd);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
sd_bus_unref(c.bus);
|
sd_bus_flush_close_unref(c.bus);
|
||||||
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user