Don't register signal handlers during module import because it may override signal...
authorZac Medico <zmedico@gentoo.org>
Thu, 22 Jun 2006 16:43:52 +0000 (16:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 22 Jun 2006 16:43:52 +0000 (16:43 -0000)
svn path=/main/trunk/; revision=3606

pym/portage.py

index a1656e36f3ed28e5e016897d2fa6e8fe966a2e6a..d0cbf70de2aab77e98f6d42c92b0a805001c2026 100644 (file)
@@ -127,19 +127,6 @@ except ImportError:
 # ===========================================================================
 
 
-def exithandler(signum,frame):
-       """Handles ^C interrupts in a sane manner"""
-       signal.signal(signal.SIGINT, signal.SIG_IGN)
-       signal.signal(signal.SIGTERM, signal.SIG_IGN)
-
-       # 0=send to *everybody* in process group
-       sys.exit(1)
-
-signal.signal(signal.SIGCHLD, signal.SIG_DFL)
-signal.signal(signal.SIGINT, exithandler)
-signal.signal(signal.SIGTERM, exithandler)
-signal.signal(signal.SIGPIPE, signal.SIG_DFL)
-
 def load_mod(name):
        modname = string.join(string.split(name,".")[:-1],".")
        mod = __import__(modname)