summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/app.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-06-25 12:36:25 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-07-14 12:14:20 -0300
commitc46a93e290194cdeb1b4e1776d4bf0edde303072 (patch)
treed4e3b043228fe27da8d6bcb3e1924d5b76ac6d9b /src/leap/bitmask/app.py
parentd35f12b00629d6578039a11ce5e18d0c58e3fa73 (diff)
Add SIGINT handler.
Diffstat (limited to 'src/leap/bitmask/app.py')
-rw-r--r--src/leap/bitmask/app.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py
index 9afe41be..eda4073c 100644
--- a/src/leap/bitmask/app.py
+++ b/src/leap/bitmask/app.py
@@ -41,6 +41,7 @@
# (thanks to: http://www.glassgiant.com/ascii/)
import multiprocessing
import os
+import signal
import sys
from leap.bitmask.backend.utils import generate_certificates
@@ -112,6 +113,9 @@ def start_app():
"""
Starts the main event loop and launches the main window.
"""
+ # Ensure that the application quits using CTRL-C
+ signal.signal(signal.SIGINT, signal.SIG_DFL)
+
# Parse arguments and store them
opts = leap_argparse.get_options()
do_display_version(opts)