NAME
IO::Async::SignalProxy
- handle POSIX signals with IO::Async
-based IO
SYNOPSIS
This object class is for internal use by IO::Async::Loop
subclasses. It is not intended for use externally.
DESCRIPTION
This module provides a class that allows POSIX signals to be handled safely alongside other IO operations on filehandles in an IO::Async::Loop
. Because signals could arrive at any time, care must be taken that they do not interrupt the normal flow of the program, and are handled at the same time as other events in the IO::Async::Loop
's results.
FUNCTIONS
$signum = IO::Async::SignalProxy::signame2num( $signame )
This utility function converts a signal name (such as "TERM") into its system- specific signal number. This may be useful to pass to POSIX::SigSet
or use in other places which use numbers instead of symbolic names.
Note that this function is not an object method, and is not exported.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>