summaryrefslogtreecommitdiff
path: root/scripts/Expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Expect.py')
-rwxr-xr-xscripts/Expect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/Expect.py b/scripts/Expect.py
index c367b5b63a9..2e0c87cf101 100755
--- a/scripts/Expect.py
+++ b/scripts/Expect.py
@@ -337,6 +337,9 @@ atexit.register(cleanup)
def signal_handler(signal, frame):
cleanup()
sys.exit(0)
+
+if win32:
+ signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGTERM, signal_handler)
class Expect (object):