pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/p5-Sys-SigAction This module implements set_s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/07eb6dd72a1a
branches:  trunk
changeset: 555204:07eb6dd72a1a
user:      sno <sno%pkgsrc.org@localhost>
date:      Wed Feb 25 21:30:27 2009 +0000

description:
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:

 sysutils/p5-Sys-SigAction/DESCR    |  10 ++++++++++
 sysutils/p5-Sys-SigAction/Makefile |  19 +++++++++++++++++++
 sysutils/p5-Sys-SigAction/distinfo |   5 +++++
 3 files changed, 34 insertions(+), 0 deletions(-)

diffs (46 lines):

diff -r 4b2d814daac0 -r 07eb6dd72a1a sysutils/p5-Sys-SigAction/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-SigAction/DESCR   Wed Feb 25 21:30:27 2009 +0000
@@ -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().
diff -r 4b2d814daac0 -r 07eb6dd72a1a sysutils/p5-Sys-SigAction/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-SigAction/Makefile        Wed Feb 25 21:30:27 2009 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2009/02/25 21:30:27 sno Exp $
+
+DISTNAME=      Sys-SigAction-0.11
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    sysutils perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Sys/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://search.cpan.org/dist/Sys-SigAction
+COMMENT=       Perl extension for Consistent Signal Handling
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+PKG_INSTALLATION_TYPES=        overwrite pkgviews
+
+PERL5_PACKLIST=                auto/Sys/SigAction/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 4b2d814daac0 -r 07eb6dd72a1a sysutils/p5-Sys-SigAction/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-SigAction/distinfo        Wed Feb 25 21:30:27 2009 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2009/02/25 21:30:27 sno Exp $
+
+SHA1 (Sys-SigAction-0.11.tar.gz) = a31b6691b73fe12107b5acc67a69d59013b60e83
+RMD160 (Sys-SigAction-0.11.tar.gz) = 78f77cab3aff1cc2b4362c07ef020644540cccf5
+Size (Sys-SigAction-0.11.tar.gz) = 16884 bytes



Home | Main Index | Thread Index | Old Index