Sending ^C to Python subprocess objects on Windows
There is a solution by using a wrapper (as described in the link Vinay provided) which is started in a new console window with the Windows start command. Code of the wrapper: #wrapper.py import subprocess, time, signal, sys, os def signal_handler(signal, frame): time.sleep(1) print ‘Ctrl+C received in wrapper.py’ signal.signal(signal.SIGINT, signal_handler) print “wrapper.py started” subprocess.Popen(“python demo.py”) … Read more