./sysutils/p5-Sys-SigAction, Perl extension for Consistent Signal Handling

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2016Q3, Version: 0.22, Package name: p5-Sys-SigAction-0.22, Maintainer: pkgsrc-users

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().


Master sites: (Expand)

SHA1: f32b96d30556b271c6e2ef604dc49801ad3fbc06
RMD160: 32e727b46d27c01a70a10f40e8fc8b3c3fa998ef
Filesize: 22.147 KB

Version history: (Expand)