1 This module implements set_sig_handler(), which sets up a signal handler and
2 (optionally) returns an object which causes the signal handler to be reset
3 to the previous value, when it goes out of scope.
5 Also implemented is timeout_call() which takes a timeout value and a code
6 reference, and executes the code reference wrapped with an alarm timeout.
8 Finally, two convenience routines are defined which allow one to get the
9 signal name from the number -- sig_name(), and get the signal number from
10 the name -- sig_number().