##// 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 try:
25 try:
26 from signal import SIGKILL
26 from signal import SIGKILL
27 except ImportError:
27 except ImportError:
28 # windows
28 SIGKILL=SIGTERM
29 SIGKILL=SIGTERM
29
30
30 from subprocess import Popen, PIPE, STDOUT
31 from subprocess import Popen, PIPE, STDOUT
@@ -60,6 +61,14 b' except ImportError:'
60 pass
61 pass
61
62
62 WINDOWS = os.name == 'nt'
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 # Paths to the kernel apps
73 # Paths to the kernel apps
65 #-----------------------------------------------------------------------------
74 #-----------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now