diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-03 17:23:08 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-03 17:23:08 -0700 |
commit | 7f9f0653aa142ad33c7f95b959d254e52d0a0569 (patch) | |
tree | e0e2e5ca97535afdf18f0cb1a7e678738ef9b618 /pym | |
parent | 77fb8383288425e1b79d8092828da0b87e6293aa (diff) | |
download | portage-7f9f0653aa142ad33c7f95b959d254e52d0a0569.tar.gz portage-7f9f0653aa142ad33c7f95b959d254e52d0a0569.tar.bz2 portage-7f9f0653aa142ad33c7f95b959d254e52d0a0569.zip |
Make AlarmSignal.register() require a time parameter and pass it to
signal.alarm().
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/exception.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/exception.py b/pym/portage/exception.py index dca1100e6..ae655542a 100644 --- a/pym/portage/exception.py +++ b/pym/portage/exception.py @@ -91,8 +91,9 @@ class AlarmSignal(TimeoutException): self.frame = frame @classmethod - def register(cls): + def register(cls, time): signal.signal(signal.SIGALRM, cls._signal_handler) + signal.alarm(time) @classmethod def unregister(cls): |