Looks like signaling functionality under Windows is extremely limited. None of the alarm functions are available. <br><br>This script redefines SIGINT (ctrl-C keyboard interrupt under windows) and keeps looping.<br><br><div style="margin-left: 40px;">

import signal, os, time<br><br>def handler(signum, frame):<br>    print &#39;You raised a SigInt! Signal handler called with signal&#39;, signum<br>    #print &#39;Quitting now.&#39;<br>    #os.abort();<br>    <br>signal.signal(signal.SIGINT, handler)<br>

<br>while True:<br>    print &#39;Loop in...&#39;<br>    time.sleep(1)<br>    print &#39;3&#39;<br>    time.sleep(1)<br>    print &#39;2&#39;<br>    time.sleep(1)<br>    print &#39;1&#39;<br>    time.sleep(1)<br></div><br>

To trigger it, run the script under Windows, and then hit ctrl-c to raise the signal.<br><br>Here&#39;s the definitive doc I found that lists what&#39;s available where: <a href="http://docs.python.org/library/signal.html">http://docs.python.org/library/signal.html</a><br>

<br>-r<br><br><br>