[Zope-Coders] Signal forwarding

Chris McDonough chrism@zope.com
09 Oct 2002 21:37:34 -0400


On Wed, 2002-10-09 at 17:06, Jeremy Hylton wrote:
>   CM> So the problem would be that if some other piece of code already
>   CM> held the lock, it could result in deadlock?
> 
> That's right.  Take FileStorage as an example.  A bunch of its methods
> acquire a lock on entry and release it on exit.  If any of these
> methods is being executed when the signal handler executes, the
> attempt to acquire the lock for pack will block forever.

What would cause the method to not finish?  It's running in a separate
thread, no?  Is its execution held up as a result of the signal?

- C