[Python-Dev] Re: Signal-resistant code (was: Two random and nearly unrelated ideas)

Tim Peters tim.one@comcast.net
Fri, 06 Sep 2002 11:50:45 -0400

[Neal Norwitz]
> Python can open a pipe to itself.  When a signal arrives, write
> a character on the pipe in addition to setting a flag.
> Then select() on the pipe.

Of course you meant to say it should do WaitForSingleObject(), so that this
scheme is portable <wink>.

> I doubt this is worth the effort, though.

Few things are.