Path to this page:
Subject: CVS commit: pkgsrc/sysutils/p5-Sys-SigAction
From: Jens Rehsack
Date: 2009-02-25 22:30:27
Message id: 20090225213027.72880175D0@cvs.netbsd.org
Log Message:
This module implements set_sig_handler(), which sets up a signal handler and
(optionally) returns an object which causes the signal handler to be reset
to the previous value, when it goes out of scope.
Also implemented is timeout_call() which takes a timeout value and a code
reference, and executes the code reference wrapped with an alarm timeout.
Finally, two convenience routines are defined which allow one to get the
signal name from the number -- sig_name(), and get the signal number from
the name -- sig_number().
Files: