python - using a signal not in introspection

Havoc Pennington hp at redhat.com
Thu Apr 26 07:08:53 PDT 2007



Thiago Macieira wrote:
> 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.

Yes, this is what I was saying dbus-python should do ;-) (and apparently 
it does do now)

Havoc



More information about the dbus mailing list