App-Sv
view release on metacpan or search on metacpan
lib/App/Sv.pm view on Meta::CPAN
my $st = kill($sig, $svc->{pid});
return $st;
}
sub _signal_all_svc {
my ($self, $sig, $cv) = @_;
my $debug = $self->{log}->logger(8);
$debug->("Received signal $sig");
my $is_any_alive = 0;
foreach my $key (keys %{ $self->{run} }) {
my $svc = $self->{run}->{$key};
next unless my $pid = $svc->{pid};
$debug->("... sent signal $sig to pid $pid");
$is_any_alive++;
kill($sig, $pid);
}
return if $cv and $is_any_alive;
$debug->('Exiting...');
$cv->send if $cv;
}
# Contolling socket
sub _listener {
my $self = shift;
my $debug = $self->{log}->logger(8);
( run in 0.824 second using v1.01-cache-2.11-cpan-df04353d9ac )