How to disconnecting from the systembus?

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


Hi,

On Mon, Feb 23, 2009 at 7:21 AM, Marcel <wittemar at googlemail.com> 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)

Havoc


More information about the dbus mailing list