Sending messages to ones self

John (J5) Palmieri johnp at redhat.com
Tue Jun 7 13:31:17 PDT 2005


On Tue, 2005-06-07 at 16:23 -0400, Joe Shaw wrote:
> Hi,
> 
> On Tue, 2005-06-07 at 15:24 -0400, John (J5) Palmieri wrote:
> > This currently only works if you send an async message.  If you block in
> > the same thread you are screwed and your program deadlocks.  How do we
> > handle this?  Do we worry about it for 1.0 or try to detect that the
> > message is being routed to ones self and throw an error?
> 
> I've seen similar problems where an app is acting as both a client and a
> server with various threads encounters deadlocks.  I wonder if sending a
> message to oneself is indicative of a larger locking bug?

Joe!!! Where have you been ;-)   I think there may be a couple of
locking bugs we need to flesh out but in this case we do return after
the timeout so all in all I don't think it is a bug in this situation.
See my other post.

-- 
John (J5) Palmieri
Associate Software Engineer
Desktop Group
Red Hat, Inc.
Blog: http://martianrock.com



More information about the dbus mailing list