chiark / gitweb /
Comment the fact that some tools need to termintate their bus connect first
authorFranck Bui <fbui@suse.com>
Fri, 12 Jan 2018 15:20:36 +0000 (16:20 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:04 +0000 (07:50 +0200)
src/login/loginctl.c

index 2b8f4fb4728fb2fb3039e53d4acf89b310cb13eb..705d056c88e7c23d5741422008155e6b3b9a02dc 100644 (file)
@@ -1698,8 +1698,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();
 #if 0 /// elogind does that in elogind_cleanup()
         polkit_agent_close();