[PATCH 2/3] Just switch back to tty6 when 'c' is used in the post-mortem pdb session
Vratislav Podzimek
vpodzime at redhat.com
Tue Jul 17 14:30:33 UTC 2012
Killing ananconda left no way to report a bug via python-meh/libreport
once user entered the post-mortem pdb session.
---
pyanaconda/exception.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py
index 28f4225..6e93e42 100644
--- a/pyanaconda/exception.py
+++ b/pyanaconda/exception.py
@@ -98,7 +98,10 @@ class AnacondaExceptionHandler(ExceptionHandler):
print("\nEntering debugger...")
import pdb
pdb.post_mortem (tb)
- os.kill(os.getpid(), signal.SIGKILL)
+ try:
+ isys.vtActivate(6)
+ except SystemError:
+ pass
def initExceptionHandling(anaconda):
fileList = [ "/tmp/anaconda.log",
--
1.7.4.4
More information about the anaconda-patches
mailing list