signal sets the name of an attribute that will contain the signal
name to catch. Signal names are as those found in %SIG.
TODO - However, it may also be convenient to specify the signal name
in the roles parameters. General use cases dont usually require
signals names to change. The indirection through signal is
currently useful for Reflex::Signal, however, so we probably need
both modes. It might be better to provide two roles, one for each
behavior, rather than one role that does both.
active specifies whether Reflex::Role::SigCatcher should be created
in the active, signal-watching state. All Reflex watchers are enabled
by default. Set it to a false value, preferably 0, to initialize the
catcher in an inactive or paused mode.
Signal watchers may be paused and resumed. See method_pause and
method_resume for ways to override the default method names.
cb_signal names the $self method that will be called whenever the
signal named in <$self-$signal()>> is caught. It defaults to
on_%s_caught, where %s is the name of the signal. So if the INT
signal is being watched, cb_signal will default to on_INT_caught.
method_start sets the name of the method that may be used to
initially start catching signals. Its start_%s by default, where
%s is the signal name being caught.
Reflex::Role::SigCatcher will automatically start watching for signals
if the value of actives attribute is true.
method_stop may be used to permanently stop signal catchers.
Stopped catchers cannot be restarted, so use method_pause if you
need to temporarily disable signal watchers. method_resume may be
used to resume them again.
Signal catchers will automatically stop watching for signals upon
method_pause sets the name of the method that may be used to pause
signal catching. It is pause_%s by default, where %s is the signal
name being caught.
method_resume sets the name of the method that may be used to
resume signal catching. It is resume_%s by default, where %s is the
signal name being caught.
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
PARTIES PROVIDE THE SOFTWARE AS IS WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH