[issue18411] signal.SIGINT in windows cause process exit directly.

2013-07-09 Thread R. David Murray
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 ___

[issue18411] signal.SIGINT in windows cause process exit directly.

2013-07-08 Thread guo tie
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