summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/frontend_app.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-07-11 12:28:20 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-07-14 12:15:25 -0300
commit525433088d6fbe3392af90942272dfd5dd2511d6 (patch)
treef2d39458b283b09bb45433f72ab2655f7c1df9de /src/leap/bitmask/frontend_app.py
parent8186e43e1be9e70ab37c1dd923ac8f275c82b556 (diff)
Use main process to run frontend.
Running the GUI in a child process gives problems on OSX. Also, change signal handling since we have less processes.
Diffstat (limited to 'src/leap/bitmask/frontend_app.py')
-rw-r--r--src/leap/bitmask/frontend_app.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/leap/bitmask/frontend_app.py b/src/leap/bitmask/frontend_app.py
index 95d36538..ffcb61ad 100644
--- a/src/leap/bitmask/frontend_app.py
+++ b/src/leap/bitmask/frontend_app.py
@@ -101,10 +101,9 @@ def run_frontend(options, flags_dict):
window = MainWindow(start_hidden=start_hidden)
- sigterm_handler = partial(signal_handler, window)
- # ignore SIGINT since app.py takes care of signaling SIGTERM to us.
- signal.signal(signal.SIGINT, signal.SIG_IGN)
- signal.signal(signal.SIGTERM, sigterm_handler)
+ sig_handler = partial(signal_handler, window)
+ signal.signal(signal.SIGINT, sig_handler)
+ signal.signal(signal.SIGTERM, sig_handler)
sys.exit(qApp.exec_())