How to disconnecting from the systembus?

Havoc Pennington havoc.pennington at
Mon Feb 23 05:28:43 PST 2009


On Mon, Feb 23, 2009 at 7:21 AM, Marcel <wittemar at> wrote:
> Applications must not close shared connections - see dbus_connection_close()
> docs. This is a bug in the application.
>  D-Bus not built with -rdynamic so unable to print a backtrace
> So how can I cleanly disconnect?

Just unref if you own a ref, and then dbus_shutdown(), and that should
disconnect it (though, it is a little bit of a hairy codepath, and
I've definitely seen it crash before, it should be OK for simple cases
and for valgrind purposes)


More information about the dbus mailing list