]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Enabled the SEGV handler.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Oct 2008 15:09:49 +0000 (15:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Oct 2008 15:09:49 +0000 (15:09 +0000)
src/pomona/installer.py

index 8964dca26af431104997f74d63614a678533cbc1..2001bfc67436c184caee261aa851392e9d0060aa 100644 (file)
@@ -25,6 +25,7 @@ from optparse import OptionParser
 import inutil, isys, dispatch
 from flags import flags
 from constants import *
+import signal
 
 # Make sure messages sent through python's warnings module get logged.
 def PomonaShowWarning(message, category, filename, lineno, file=sys.stderr):
@@ -36,6 +37,9 @@ def setupEnvironment():
     os.environ['HOME'] = '/tmp'
     os.environ['LC_NUMERIC'] = 'C'
 
+    signal.signal(signal.SIGINT, signal.SIG_DFL)
+    signal.signal(signal.SIGSEGV, isys.handleSegv)
+
 def getInstClass():
     from installclass import DefaultInstall
     return DefaultInstall(flags.expert)