diff options
-rw-r--r-- | pym/portage.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py index 2942bb257..f127b788c 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -513,8 +513,10 @@ def elog_process(cpv, mysettings): # Timeout after one minute (in case something like the mail # module gets hung). signal.alarm(60) - m.process(mysettings, cpv, mylogentries, fulllog) - signal.alarm(0) + try: + m.process(mysettings, cpv, mylogentries, fulllog) + finally: + signal.alarm(0) if hasattr(m, "finalize") and not m.finalize in _elog_atexit_handlers: _elog_atexit_handlers.append(m.finalize) atexit_register(m.finalize, mysettings) |