summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-02-17 19:11:11 +0000
committerChris Lumens <clumens@redhat.com>2006-02-17 19:11:11 +0000
commit22e3208ea584df692890d2dcfb6bba23544868ae (patch)
tree4d8e6a5aea0bb830566ac6fba7fde2aeeeb2cf44 /exception.py
parentacf76fdb6c1a43e60dd7f3815f35b4a92e646fc1 (diff)
downloadanaconda-22e3208ea584df692890d2dcfb6bba23544868ae.tar.gz
anaconda-22e3208ea584df692890d2dcfb6bba23544868ae.tar.xz
anaconda-22e3208ea584df692890d2dcfb6bba23544868ae.zip
Reboot after writing to floppy or remote (#181745).
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/exception.py b/exception.py
index 4e97fd880..8877b07a7 100644
--- a/exception.py
+++ b/exception.py
@@ -419,9 +419,10 @@ def handleException(dispatch, intf, (type, value, tb)):
if floppyRc == 0:
intf.messageWindow(_("Dump Written"),
_("Your system's state has been successfully written to "
- "the floppy. Your system will now be rebooted."))
- intf.__del__ ()
- os.kill(os.getpid(), signal.SIGKILL)
+ "the floppy. Your system will now be rebooted."),
+ type="custom", custom_icon="info",
+ custom_buttons=[_("_Reboot")])
+ sys.exit(0)
elif floppyRc == 1:
continue
elif floppyRc == 2:
@@ -435,9 +436,10 @@ def handleException(dispatch, intf, (type, value, tb)):
if scpRc == 0:
intf.messageWindow(_("Dump Written"),
_("Your system's state has been successfully written to "
- "the remote host.\nYour system will now be reset."))
- intf.__del__ ()
- os.kill(os.getpid(), signal.SIGKILL)
+ "the remote host.\nYour system will now be reset."),
+ type="custom", custom_icon="info",
+ custom_buttons=[_("_Reboot")])
+ sys.exit(0)
elif scpRc == 1:
continue
elif scpRc == 2: