The underlying code causes an invalid error message on DBus 0.92. "dbus_shutdown() called but connections were still live!" ------------------- #define DBUS_API_SUBJECT_TO_CHANGE #include <dbus/dbus.h> #include <stdio.h> int main() { DBusConnection* conn; DBusError err; int ret; dbus_error_init(&err); conn = dbus_bus_get(DBUS_BUS_SESSION, &err); if (dbus_error_is_set(&err)) { fprintf(stderr, "Connection Error (%s)\n", err.message); dbus_error_free(&err); return 0; } // uncomment the next line to avoid the shutdown error message // dbus_connection_unref(conn); dbus_connection_unref(conn); dbus_shutdown(); return 0; }
dbus_shutdown() will need to close() and drop all shared connections, I'm not sure it does that...
*** This bug has been marked as a duplicate of 8376 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.