Comment the fact that some tools need to termintate their bus connect first
This commit is contained in:
parent
3b2f303300
commit
0a84daa5aa
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue