summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-03 18:11:00 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-03 18:11:00 -0700
commit22ee35ed55d8b89340bda893e3951d3125e8369c (patch)
treeb76797db4e9e994a0787b6c3a67bee9286fc66f8
parentacedc2bc6262eb16a376cd5d30316712e8a5a097 (diff)
downloadportage-22ee35ed55d8b89340bda893e3951d3125e8369c.tar.gz
portage-22ee35ed55d8b89340bda893e3951d3125e8369c.tar.bz2
portage-22ee35ed55d8b89340bda893e3951d3125e8369c.zip
Make AlarmSignal._signal_handler() restore the default SIGALRM
handler.
-rw-r--r--pym/portage/exception.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/exception.py b/pym/portage/exception.py
index ae655542a..bfb90cc16 100644
--- a/pym/portage/exception.py
+++ b/pym/portage/exception.py
@@ -102,6 +102,7 @@ class AlarmSignal(TimeoutException):
@classmethod
def _signal_handler(cls, signum, frame):
+ signal.signal(signal.SIGALRM, signal.SIG_DFL)
raise AlarmSignal("alarm signal",
signum=signum, frame=frame)