Comment the fact that some tools need to termintate their bus connect first

This commit is contained in:
Franck Bui 2018-01-12 16:20:36 +01:00
parent 3b2f303300
commit 0a84daa5aa
6 changed files with 12 additions and 2 deletions

View file

@ -2113,6 +2113,8 @@ int main(int argc, char *argv[]) {
r = busctl_main(bus, argc, argv);
finish:
/* make sure we terminate the bus connection first, and then close the
* pager, see issue #3543 for the details. */
sd_bus_flush_close_unref(bus);
pager_close();

View file

@ -615,6 +615,8 @@ int main(int argc, char*argv[]) {
r = localectl_main(bus, argc, argv);
finish:
/* make sure we terminate the bus connection first, and then close the
* pager, see issue #3543 for the details. */
sd_bus_flush_close_unref(bus);
pager_close();

View file

@ -1607,8 +1607,9 @@ int main(int argc, char *argv[]) {
r = loginctl_main(argc, argv, bus);
finish:
/* make sure we terminate the bus connection first, and then close the
* pager, see issue #3543 for the details. */
sd_bus_flush_close_unref(bus);
pager_close();
polkit_agent_close();

View file

@ -3166,6 +3166,8 @@ int main(int argc, char*argv[]) {
r = machinectl_main(argc, argv, bus);
finish:
/* make sure we terminate the bus connection first, and then close the
* pager, see issue #3543 for the details. */
sd_bus_flush_close_unref(bus);
pager_close();
polkit_agent_close();

View file

@ -1670,8 +1670,9 @@ int main(int argc, char* argv[]) {
}
finish:
/* make sure we terminate the bus connection first, and then close the
* pager, see issue #3543 for the details. */
bus = sd_bus_flush_close_unref(bus);
pager_close();
free(arg_mount_what);

View file

@ -493,6 +493,8 @@ int main(int argc, char *argv[]) {
r = timedatectl_main(bus, argc, argv);
finish:
/* make sure we terminate the bus connection first, and then close the
* pager, see issue #3543 for the details. */
sd_bus_flush_close_unref(bus);
pager_close();