Branch Coverage

blib/lib/POE/Resource/Signals.pm
Criterion Covered Total %
branch 92 126 73.0


line true false branch
70 0 4 unless exists $$sig_rec{$old_id}
74 4 0 if exists $kr_sessions_to_signals{$old_id}
78 2 0 unless exists $$pid_rec{$old_id}
82 0 4 if exists $kr_sessions_to_pids{$old_id}
150 268 1 unless (keys %_safe_signals)
155 9240 9112 if $signal =~ /^ ( NUM\d+ |__[A-Z0-9]+__ |ALL|CATCHALL|DEFER|HOLD|IGNORE|MAX|PAUSE |RTMIN|RTMAX|SETS |SEGV | ) $/x
168 0 9112 if $signal eq 'BUS' and RUNNING_IN_HELL()
171 0 9112 if $signal =~ /^CH?LD$/ and exists $INC{'Apache.pm'}
179 268 0 if exists $SIG{'CHLD'}
180 267 0 if exists $SIG{'CLD'}
181 267 0 if exists $SIG{'PIPE'}
257 0 191 if ($kr_has_child_procs)
261 0 191 if ($polling_for_signals)
265 0 191 if ($self->_data_sig_pipe_has_signals)
269 0 189 if (exists $kr_signals{'CHLD'})
275 189 0 unless (RUNNING_IN_HELL())
285 0 2 if ($pid == 0)
299 2 189 if ($leaked_children)
327 219 89 if (not exists $kr_signals{$signal} and exists $_safe_signals{$signal} and $signal ne 'CHLD' || !scalar(keys %kr_sessions_to_pids))
341 191 53 if (not exists $kr_signals{$signal} and exists $_safe_signals{$signal} and $signal ne 'CHLD' || !scalar(keys %kr_sessions_to_pids))
357 527 13 unless keys %{$kr_sessions_to_signals{$sid};}
362 525 15 unless (keys %{$kr_signals{$signal};})
377 220 571 if (exists $kr_sessions_to_signals{$sid})
383 10 781 if (exists $kr_sessions_to_pids{$sid})
420 145 22 unless keys %{$kr_pids_to_events{$pid};}
426 123 44 unless (keys %{$kr_sessions_to_pids{$sid};})
439 7793 854 unless $kr_has_child_procs or $self->_data_sig_pipe_has_signals
443 390 464 if exists $kr_sessions_to_pids{$sid}
496 0 1 unless exists $kr_sessions_to_signals{$sid}
537 204 282 if ($POE::Kernel::kr_signal_type & 2 or $POE::Kernel::kr_signal_type & 1 and not $POE::Kernel::kr_signal_total_handled)
542 0 287 unless $self->_data_ses_exists($dead_session->ID)
572 0 1 if $polling_for_signals
588 11 402 if $polling_for_signals
664 240 173 if ($pid > 0 or RUNNING_IN_HELL() and $pid < -1)
665 240 0 if (RUNNING_IN_HELL() or WIFEXITED($?) or WIFSIGNALED($?)) { }
674 143 102 if (exists $kr_pids_to_events{$pid})
710 0 173 if $pid != -1
714 0 173 if ($! == 4)
729 173 0 if ($! == 10)
758 2215 248 unless $kr_has_child_procs or $self->_data_sig_pipe_has_signals
762 147 101 if scalar keys %kr_pids_to_events
802 723 9487 unless $signal_pipe_read
825 0 269 if (RUNNING_IN_HELL()) { }
832 0 269 unless ($signal_pipe_write)
851 0 173 if RUNNING_IN_HELL()
860 0 564 if RUNNING_IN_HELL()
862 173 391 unless ($signal_mask_all)
866 0 564 unless sigprocmask(2, $signal_mask_all, $mask_temp)
872 0 564 if RUNNING_IN_HELL()
874 0 564 unless ($signal_mask_none)
878 0 564 unless sigprocmask(2, $signal_mask_none, $mask_temp)
886 193 2 if ($signal_pipe_read)
890 193 2 if ($signal_pipe_write)
908 0 233 if $finalizing
910 0 233 unless (defined $signal_pipe_pid)
918 0 233 if ($$ != $signal_pipe_pid)
978 88 353 if $octets_count
979 120 208 if defined $octets_count
981 88 120 if $! == 11 or $! == 11
997 120 88 unless @pending_signals
1016 0 208 if $signal_src_pid != $$
1018 88 145 if ($signal_name eq 'CHLD') { }
117 28 elsif ($signal_name eq 'PIPE') { }