NAME
Signal::Pending - Signal pending status made easy
VERSION
Version 0.004
SYNOPSIS
Signal::Pending is an abstraction around your process'/thread's pending signals. It can be used in combination with signal masks to handle signals in a controlled manner.
use Signal::Mask 'SIG_MASK';
use Signal::Pending 'SIG_PENDING';
{
local $SIG_MASK{INT} = 1;
do {
something();
} while (not $SIG_PENDING{INT})
}
#signal delivery gets postponed until now
EXPORT
When importation is given an argument, this module exports a HASH by that name. It can also be accessed as %Signal::Pending::SIG_PENDING. Any true value for a hash entry will correspond with that signal awaiting being handled.
AUTHOR
Leon Timmermans, <leont at cpan.org>
BUGS
Please report any bugs or feature requests to bug-signal-mask at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Signal-Mask. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Signal::Pending
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
Copyright 2010 Leon Timmermans.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.