python - using a signal not in introspection

Thiago Macieira thiago at
Wed Apr 25 21:49:41 PDT 2007

Havoc Pennington wrote:
>I did just think of a race with the client-side tracking approach:
>  AddMatch for first owner
>  new owner takes over
>  NameOwnerChanged emitted by bus
>  new owner emits signal
>  Signal dispatched by bus
>  Receive NameOwnerChanged with new owner
>  AddMatch for second owner

Don't use AddMatch for the first owner. Instead, use AddMatch for the name 
you're watching. The daemon handles that gracefully.

You still need to store the owner information somewhere in the client in 
order to match the incoming message (sender contains the owner).

  Thiago Macieira  -  thiago (AT) - thiago (AT)
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the dbus mailing list