Add a new SignalHandled decorator
authorGuido Trotter <ultrotter@google.com>
Wed, 19 Aug 2009 08:18:19 +0000 (10:18 +0200)
committerGuido Trotter <ultrotter@google.com>
Thu, 20 Aug 2009 09:28:07 +0000 (11:28 +0200)
commit451575de7acf941b14ba293ba41513511c8a2cb9
treef5fc0bdee4c80bed0dff65a86877f26393a74365
parent6c52849e4c0744f0480adc0fddba9d6cbc8c33fa
Add a new SignalHandled decorator

This decorator can be used to call a function holding with protection
from a given signal. The function should accept a dict of
utils.SignalHandler, indexed by signal number, and make use of it.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/utils.py