[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Tracking application lifetime
From:       Sebastian =?iso-8859-1?q?Tr=FCg?= <strueg () mandriva ! com>
Date:       2006-09-14 14:14:21
Message-ID: 200609141614.21235.strueg () mandriva ! com
[Download RAW message or body]

On Thursday 14 September 2006 16:06, Havoc Pennington wrote:
> Sebastian Tr=FCg wrote:
> > Hello.
> >
> > Is it possible to track the lifetime of a dbus client from another
> > client? What I want to do is removing a dbus client from an internal li=
st
> > once the client crashes or terminates without manually unregistering.
>
> Yep, that's part of the purpose of dbus. What you want to do is watch
> for the client's unique bus name to lose its owner. The unique bus name
> will be in the "sender" field of any message you get from the client.
>
> http://thaiopensource.org/development/suriyan/wiki/DbusNotes may be more
> helpful than the official tutorial if it isn't clear what I'm talking
> about with the bus name etc.
>
> Surely someone on the list can point to a simple example of watching
> NameOwnerChanged on a unique bus name - anyone have that code around?

thanks a lot. :)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic