dbus cleanup question

Macartney, Geoff gmacartney at tycoint.com
Thu Feb 21 08:09:54 PST 2008

I've tried things out with a small test program, just calling
dbus_bus_get once, and I still get the same result. I'll grab a more
up-to-date dbus and see how it goes with that, and if there's no
improvement, I'll mail the test program to the list.



Tyco Safety Products/CEM Systems Ltd.
Registered in Northern Ireland: NI 25728.  Registered Office: Unit 4 Ravenhill Business Park, Ravenhill Road, Belfast, BT6 8AW..
Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. This email and any attachments are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender immediately and delete any copies in your possession.
-----Original Message-----

From: havoc.pennington at gmail.com [mailto:havoc.pennington at gmail.com] On
Behalf Of Havoc Pennington
Sent: 21 February 2008 15:24
To: Macartney, Geoff
Cc: John (J5) Palmieri; dbus at lists.freedesktop.org
Subject: Re: dbus cleanup question


On Thu, Feb 21, 2008 at 10:18 AM, Macartney, Geoff
<gmacartney at tycoint.com> wrote:
>  I'm talking through my hat - I've actually called dbus_bus_get twice;
>  library is composed of two bits, one to listen for events on dbus,
>  calls dbus_bus_get; and another bit to send messages to dbus, which
>  be used without the listening side of things being invoked (it does a
>  send, then a flush). This second bit also does dbus_bus_get, in order
>  get a handle to the bus so it can send the event.
>  Is this my problem? Do I need to arrange so that I only call the
>  dbus_bus_get once?

It's fine to call it twice, but then you own two references that you
have to drop before you shutdown, instead of one reference.


More information about the dbus mailing list