summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-01-09 21:57:56 +0000
committerMatt Wilson <msw@redhat.com>2001-01-09 21:57:56 +0000
commit120dfa035ec0fdd71db6c1043e4d6022b649aee7 (patch)
tree9cc90fe7379fc668187ef23440c9059a9532b12b /iw
parentba19be0827fdf1680e22c5916802547b7cde35c6 (diff)
downloadanaconda-120dfa035ec0fdd71db6c1043e4d6022b649aee7.tar.gz
anaconda-120dfa035ec0fdd71db6c1043e4d6022b649aee7.tar.xz
anaconda-120dfa035ec0fdd71db6c1043e4d6022b649aee7.zip
exit gracefully if someone called sys.exit() on us during install
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())