Fwd: Circular calls with DBUS

Thiago Macieira thiago at kde.org
Thu Mar 22 11:48:12 PDT 2007


Matthew Johnson wrote:
>For those on the list, this thread is about reentrant calls in D-Bus;
>that is when application A makes a call on application B, and
>application B's handler for that call makes another call back to
>application A. Jacques thought this could be handled more nicely if a
>'call trace' was stored in the header of each message so that the second
>call was associated with the first.

We agreed last year we don't want that. The applications that try to make 
this should deadlock visibly during their development phases, so that 
developers take the time to make asynchronous calls.

We reached that conclusion because the "call stack" or similar mechanisms 
(like used to exist in DCOP) solve the problem for the simple deadlocks, 
but make it a lot harder to spot the more complex ones. And those end up 
creeping into the final releases.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    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 : http://lists.freedesktop.org/archives/dbus/attachments/20070322/9854796e/attachment.pgp


More information about the dbus mailing list