R. David Murray added the comment:
Windows doesn't support posix signals, sending one just kills the process, as
you have observed. See the documentation for the os.kill function.
--
nosy: +r.david.murray
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
___
New submission from guo tie:
I wrote those test python code as following:
import signal
import time
import os
def handler(signum, frame):
print "do whatever, like call thread.interrupt_main()"
return
signal.signal(signal.SIGINT, handler)
while 1:
try:
time.sleep(10)
ex