[Twisted-Python] Uninteruptable infinite loop: Woven rendering
Andrew Bennetts
andrew-twisted at puzzling.org
Sun Aug 10 20:06:32 MDT 2003
On Sun, Aug 10, 2003 at 08:59:33PM -0500, Glyph Lefkowitz wrote:
>
> On Sunday, August 10, 2003, at 05:25 PM, Mary wrote:
>
> >Do infinite loops always make twistd uninteruptable?
>
> As you might imagine, it's not twistd, but python.
>
> Some do, and some don't. I _think_ that the difference is that
> infinite loops which allocate memory are uninterruptible but those
> which are simply iterating can be interrupted, but I have never managed
> to establish a deterministic difference.
Also, bare "except:" clauses can suppress KeyboardInterrupt errors, and a
quick grep shows a disturbingly large number of these in Twisted (perhaps
the Coding Standard needs updating?). That still wouldn't explain why
SIGTERM doesn't work, though :/
-Andrew.
More information about the Twisted-Python
mailing list