summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-10-24 20:10:41 +0000
committerChris Lumens <clumens@redhat.com>2005-10-24 20:10:41 +0000
commit3b1e8b8e1c3a06c31d73eec3372cc32b760045f3 (patch)
tree8b1f14319803bb9891e2ecccfc44a5424310d95c /exception.py
parent73526ec968aabc3f0f5021781764eb549c3e7651 (diff)
downloadanaconda-3b1e8b8e1c3a06c31d73eec3372cc32b760045f3.tar.gz
anaconda-3b1e8b8e1c3a06c31d73eec3372cc32b760045f3.tar.xz
anaconda-3b1e8b8e1c3a06c31d73eec3372cc32b760045f3.zip
Don't make scp/floppy errors (typos, etc.) fatal so the user has another
chance to copy the exception off.
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/exception.py b/exception.py
index 626354de1..d66c2f97e 100644
--- a/exception.py
+++ b/exception.py
@@ -240,6 +240,7 @@ def copyExceptionToRemote(intf):
(childpid, master) = pty.fork()
if childpid < 0:
log.critical("Could not fork process to run scp")
+ scpWin.pop()
return 2
elif childpid == 0:
# child process - run scp
@@ -252,6 +253,7 @@ def copyExceptionToRemote(intf):
try:
childstatus = scpAuthenticate(master, childpid, password)
except OSError:
+ scpWin.pop()
return 2
os.close(master)
@@ -259,9 +261,10 @@ def copyExceptionToRemote(intf):
if os.WIFEXITED(childstatus) and os.WEXITSTATUS(childstatus) == 0:
return 0
else:
+ scpWin.pop()
return 2
-def copyExceptionToFloppy (intf):
+def copyExceptionToFloppy (intf, dispatch):
# in test mode have save to floppy option just copy to new name
if not flags.setupFilesystems:
try:
@@ -365,7 +368,7 @@ def handleException(dispatch, intf, (type, value, tb)):
pdb.post_mortem (tb)
os.kill(os.getpid(), signal.SIGKILL)
elif rc == 2:
- floppyRc = copyExceptionToFloppy(intf)
+ floppyRc = copyExceptionToFloppy(intf, dispatch)
if floppyRc == 0:
intf.messageWindow(_("Dump Written"),
@@ -379,8 +382,7 @@ def handleException(dispatch, intf, (type, value, tb)):
intf.messageWindow(_("Dump Not Written"),
_("There was a problem writing the system state to the "
"floppy."))
- intf.__del__ ()
- os.kill(os.getpid(), signal.SIGKILL)
+ continue
elif rc == 3:
scpRc = copyExceptionToRemote(intf)
@@ -396,5 +398,4 @@ def handleException(dispatch, intf, (type, value, tb)):
intf.messageWindow(_("Dump Not Written"),
_("There was a problem writing the system state to the "
"remote host."))
- intf.__del__ ()
- os.kill(os.getpid(), signal.SIGKILL)
+ continue