dbus cleanup question

Macartney, Geoff gmacartney at tycoint.com
Thu Feb 21 07:18:11 PST 2008


Aha!

I'm talking through my hat - I've actually called dbus_bus_get twice; my
library is composed of two bits, one to listen for events on dbus, which
calls dbus_bus_get; and another bit to send messages to dbus, which can
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 to
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?

Cheers
Geoff

-----Original Message-----
From: dbus-bounces at lists.freedesktop.org
[mailto:dbus-bounces at lists.freedesktop.org] On Behalf Of Macartney,
Geoff
Sent: 21 February 2008 14:57
To: John (J5) Palmieri
Cc: dbus at lists.freedesktop.org; Havoc Pennington
Subject: RE: dbus cleanup question

Hi John

I just call dbus_bus_get once; and I'm using dbus-1.0.1-12.fc6.

cheers
Geoff


 
--------------------------------------------------------

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: John (J5) Palmieri [mailto:johnp at redhat.com] 
Sent: 21 February 2008 13:58
To: Macartney, Geoff
Cc: Havoc Pennington; dbus at lists.freedesktop.org
Subject: RE: dbus cleanup question


On Thu, 2008-02-21 at 13:17 +0000, Macartney, Geoff wrote:
> Hi Havoc et al.
> 
> I have a followup question to my question about cleanup on shutdown. 
> 
> I tried adding dbus_shutdown (I was already calling dbus_unref on my
> connection) upon exit, and I get the error message:
> 
> process 12278: dbus_shutdown() called but connections were still live.
> This probably means the application did not drop all its references to
> bus connections.

How many times do you call dbus_bus_get?  And what version of D-Bus are
you using.  Some older versions did not handle shutdown properly under
certain conditions.

-- 
John (J5) Palmieri <johnp at redhat.com>
_______________________________________________
dbus mailing list
dbus at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus



More information about the dbus mailing list