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 190 if ($kr_has_child_procs)
261 0 190 if ($polling_for_signals)
265 0 190 if ($self->_data_sig_pipe_has_signals)
269 0 188 if (exists $kr_signals{'CHLD'})
275 188 0 unless (RUNNING_IN_HELL())
285 0 2 if ($pid == 0)
299 2 188 if ($leaked_children)
327 219 86 if (not exists $kr_signals{$signal} and exists $_safe_signals{$signal} and $signal ne 'CHLD' || !scalar(keys %kr_sessions_to_pids))
341 190 31 if (not exists $kr_signals{$signal} and exists $_safe_signals{$signal} and $signal ne 'CHLD' || !scalar(keys %kr_sessions_to_pids))
357 514 13 unless keys %{$kr_sessions_to_signals{$sid};}
362 512 15 unless (keys %{$kr_signals{$signal};})
377 219 557 if (exists $kr_sessions_to_signals{$sid})
383 10 766 if (exists $kr_sessions_to_pids{$sid})
420 131 22 unless keys %{$kr_pids_to_events{$pid};}
426 111 42 unless (keys %{$kr_sessions_to_pids{$sid};})
439 7738 576 unless $kr_has_child_procs or $self->_data_sig_pipe_has_signals
443 282 294 if exists $kr_sessions_to_pids{$sid}
496 0 1 unless exists $kr_sessions_to_signals{$sid}
537 203 268 if ($POE::Kernel::kr_signal_type & 2 or $POE::Kernel::kr_signal_type & 1 and not $POE::Kernel::kr_signal_total_handled)
542 0 286 unless $self->_data_ses_exists($dead_session->ID)
572 0 1 if $polling_for_signals
588 6 392 if $polling_for_signals
664 226 172 if ($pid > 0 or RUNNING_IN_HELL() and $pid < -1)
665 226 0 if (RUNNING_IN_HELL() or WIFEXITED($?) or WIFSIGNALED($?)) { }
674 129 102 if (exists $kr_pids_to_events{$pid})
710 0 172 if $pid != -1
714 0 172 if ($! == 4)
729 172 0 if ($! == 10)
758 2224 178 unless $kr_has_child_procs or $self->_data_sig_pipe_has_signals
762 77 101 if scalar keys %kr_pids_to_events
802 722 9446 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 562 if RUNNING_IN_HELL()
862 173 389 unless ($signal_mask_all)
866 0 562 unless sigprocmask(2, $signal_mask_all, $mask_temp)
872 0 562 if RUNNING_IN_HELL()
874 0 562 unless ($signal_mask_none)
878 0 562 unless sigprocmask(2, $signal_mask_none, $mask_temp)
886 192 2 if ($signal_pipe_read)
890 192 2 if ($signal_pipe_write)
908 0 218 if $finalizing
910 0 218 unless (defined $signal_pipe_pid)
918 0 218 if ($$ != $signal_pipe_pid)
975 88 328 if $octets_count
976 110 198 if defined $octets_count
978 88 110 if $! == 11 or $! == 11
994 110 88 unless @pending_signals
1013 0 198 if $signal_src_pid != $$
1015 88 130 if ($signal_name eq 'CHLD') { }
102 28 elsif ($signal_name eq 'PIPE') { }