diff options
author | sno <sno@pkgsrc.org> | 2009-02-25 21:30:27 +0000 |
---|---|---|
committer | sno <sno@pkgsrc.org> | 2009-02-25 21:30:27 +0000 |
commit | 6dc5b2054bfd2475cd730e0645857c5feabdb915 (patch) | |
tree | 5961537072c4a46afb90b9c4f10bc0489f6b1e2a /sysutils/p5-Sys-SigAction/DESCR | |
parent | 616f2a47a5003044b7f0c247f833f165016a7949 (diff) | |
download | pkgsrc-6dc5b2054bfd2475cd730e0645857c5feabdb915.tar.gz |
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().
Diffstat (limited to 'sysutils/p5-Sys-SigAction/DESCR')
-rw-r--r-- | sysutils/p5-Sys-SigAction/DESCR | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysutils/p5-Sys-SigAction/DESCR b/sysutils/p5-Sys-SigAction/DESCR new file mode 100644 index 00000000000..1bc40e7a5f8 --- /dev/null +++ b/sysutils/p5-Sys-SigAction/DESCR @@ -0,0 +1,10 @@ +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(). |