Newbie question: dbus_bus_get() and dbus_error_is_set()

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Apr 7 07:16:43 PDT 2011


On Thu, 07 Apr 2011 at 09:56:59 -0400, Colin Walters wrote:
> On Wed, Apr 6, 2011 at 11:27 AM, Simon McVittie
> <simon.mcvittie at collabora.co.uk> wrote:
> > In libdbus they're fatal by default. Debian and derivatives (e.g. Ubuntu)
> > have a patch to make these warnings default to not being fatal, which is
> > probably why you're not seeing a SIGABRT.
> 
> Wait, what?  Was this patch ever proposed here?

I have no idea; the changelog says it's been there since 1.0.0-1 in 2006, which
pre-dates my involvement. Setting the environment variable DBUS_FATAL_WARNINGS
still takes precedence.

I've been somewhat reluctant to revert it because libdbus has historically had
a lot of fatal warnings for things that are non-trivial, or even impossible,
for callers to check. dbus-glib is getting better at that, though (see
<https://bugs.freedesktop.org/show_bug.cgi?id=22156>,
<https://bugs.freedesktop.org/show_bug.cgi?id=35767>,
<https://bugs.freedesktop.org/show_bug.cgi?id=7909>,
<https://bugs.freedesktop.org/show_bug.cgi?id=23616>,
<https://bugs.freedesktop.org/show_bug.cgi?id=35766>).

    S


More information about the dbus mailing list