From cafb0bf1f711d0ac7254e27af2000de7d02fb883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 4 May 2006 16:30:01 +0000 Subject: [PATCH] * fix: disable interrupt signal within exception handler (oops!) --- pisi-cli | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pisi-cli b/pisi-cli index 5e4dd284..1bdd8c2e 100755 --- a/pisi-cli +++ b/pisi-cli @@ -14,6 +14,7 @@ import sys import locale import traceback import exceptions +import signal import bsddb3.db as db import pisi.ui @@ -29,7 +30,7 @@ def exit(): sys.exit(1) def handle_exception(exception, value, tb): - + signal.signal(signal.SIGINT, signal.SIG_IGN) # disable further interrupts ui = pisi.cli.CLI() # make a temporary UI show_traceback = False if exception == exceptions.KeyboardInterrupt: