On Sat, 17 May 2008 12:49:54 -0700, John Schroeder <[EMAIL PROTECTED]> wrote:
On Sat, May 17, 2008 at 12:32 PM, alan <[EMAIL PROTECTED]> 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,


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


Look at that program.  It's single-threaded.  Where do you think the ^C
is going? :)

Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to