waiting on an event blocks all signals

John Schroeder jschroed at gmail.com
Sat May 17 15:49:54 EDT 2008


^C only kills the main thread.  Use Control-Break to kill all threads.

On Sat, May 17, 2008 at 12:32 PM, alan <alangrow at gmail.com> wrote:

> This ignores CTRL-C on every platform I've tested:
>
> python -c "import threading; threading.Event().wait()"
> ^C^C^C^C
>
> It looks to me like all signals are masked before entering wait(). Can
> someone familiar with the internals explain and/or justify this
> behavior? Thanks,
>
> -Alan
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080517/6bcbbf5f/attachment.html>


More information about the Python-list mailing list