[Zope-Coders] Signal forwarding

Chris McDonough chrism@zope.com
09 Oct 2002 21:51:10 -0400


On Wed, 2002-10-09 at 21:59, Jeremy Hylton wrote:
>   CM> What would cause the method to not finish?  It's running in a
>   CM> separate thread, no?  Is its execution held up as a result of
>   CM> the signal?
> 
> It's just a question of luck.  What if the thread that holds the lock
> is also the thread that runs the signal handler?  That thread can't
> wait fot itself.

The thread that handles the signal is always the main thread.  The main
thread never handles any ZODB functions (its tied up in asyncore).

- C