Condition Coverage

blib/lib/Mojo/IOLoop/ReadWriteFork/SIGCHLD.pm
Criterion Covered Total %
condition 7 17 41.1


and 3 conditions

line !l l&&!r l&&r condition
28 0 33 0 not $SIG{'CHLD'} and $reactor->isa("Mojo::Reactor::EV")

or 2 conditions

line l !l condition
7 0 22 $ENV{'WAIT_PID_INTERVAL'} || 0.05

or 3 conditions

line l !l&&r !l&&!r condition
13 0 0 2 %{$self->pids;} || $self->{'tid'}
28 0 0 0 $self->{'ev'}{$pid} ||= EV::child($pid, 0, sub { $self->_exit($pid, (shift())->rstatus); } )
41 32 0 23 $kid == $pid or $kid == -1
44 22 11 0 $self->{'tid'} ||= "Mojo::IOLoop"->recurring("0.05", sub { my $ioloop = shift(); my $pids = $self->pids; return $ioloop->remove(delete $self->{'tid'}) unless %$pids; foreach my $pid (keys %$pids) { local($?, $!); my $kid = CORE::waitpid($pid, 1); $self->_exit($pid, $?) if $kid == $pid or $kid == -1; } ; } )