NAME
Linux::Event::Signal - signalfd adaptor for Linux::Event::Reactor
SYNOPSIS
<<<<<<< HEAD ======= use v5.36; use Linux::Event;
my $loop = Linux::Event->new( model => 'reactor' );
# Subscribe via the loop convenience method:
>>>>>>> 1401c31 (prep for cpan and release, new tool added)
my $sub = $loop->signal('INT', sub ($loop, $sig, $count, $data) {
$loop->stop;
});
DESCRIPTION
Linux::Event::Signal adapts signalfd-style signal delivery into the reactor loop. Most users access it through $loop->signal(...) rather than constructing it directly.
Signal subscriptions are loop primitives. They are not a general-purpose signal framework.
CALLBACK ABI
Signal callbacks receive four arguments:
$cb->($loop, $signal_name, $count, $data)
$count is the number of queued deliveries drained in the current dispatch.
SUBSCRIPTIONS
The returned subscription object supports cancel.