##// END OF EJS Templates
interrupt windows subprocesses with CTRL-C instead of SIGINT...
MinRK -
Show More
@@ -25,6 +25,7 b' from signal import SIGINT, SIGTERM'
25 25 try:
26 26 from signal import SIGKILL
27 27 except ImportError:
28 # windows
28 29 SIGKILL=SIGTERM
29 30
30 31 from subprocess import Popen, PIPE, STDOUT
@@ -60,6 +61,14 b' except ImportError:'
60 61 pass
61 62
62 63 WINDOWS = os.name == 'nt'
64
65 if WINDOWS:
66 try:
67 # >= 2.7, 3.2
68 from signal import CTRL_C_EVENT as SIGINT
69 except ImportError:
70 pass
71
63 72 #-----------------------------------------------------------------------------
64 73 # Paths to the kernel apps
65 74 #-----------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now