+ g_printf("failed to connect to the system bus while trying to acquire name '%s': either dbus-daemon isn't running or we don't have permission to push names and/or their interfaces to it.\n", name);
+ }
+
+ g_print("lost name %s, exiting...\n", name);
+
+ logind_mem_clean();
}
/* --- end bus/name handlers, begin misc unix functions --- */
}
/* --- end bus/name handlers, begin misc unix functions --- */
-/* free()'s */
+/* safe call to clean and then exit
+ * this stops our GMainLoop sfaely before letting main() return */