^C only kills the main thread.  Use Control-Break to kill all threads.<br><br><div class="gmail_quote">On Sat, May 17, 2008 at 12:32 PM, alan <<a href="mailto:alangrow@gmail.com">alangrow@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This ignores CTRL-C on every platform I've tested:<br>
<br>
python -c "import threading; threading.Event().wait()"<br>
^C^C^C^C<br>
<br>
It looks to me like all signals are masked before entering wait(). Can<br>
someone familiar with the internals explain and/or justify this<br>
behavior? Thanks,<br>
<br>
-Alan<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>