summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
Diffstat (limited to 'iw')
-rw-r--r--iw/progress_gui.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/iw/progress_gui.py b/iw/progress_gui.py
index 0e65b3c8c..93de0efb5 100644
--- a/iw/progress_gui.py
+++ b/iw/progress_gui.py
@@ -24,7 +24,15 @@ class DoInstall (Thread):
self.todo.intf.shutdown()
print "shut down"
os.kill(os.getpid(), signal.SIGTERM)
-
+
+ except SystemExit, code:
+ import os, signal
+
+ print "shutting down"
+ self.todo.intf.shutdown()
+ print "shut down"
+ os.kill(os.getpid(), signal.SIGTERM)
+
except:
threads_enter ()
handleException(self.todo, sys.exc_info())