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 269 1 unless (keys %_safe_signals)
155 9274 9146 if $signal =~ /^ ( NUM\d+ |__[A-Z0-9]+__ |ALL|CATCHALL|DEFER|HOLD|IGNORE|MAX|PAUSE |RTMIN|RTMAX|SETS |SEGV | ) $/x
168 0 9146 if $signal eq 'BUS' and RUNNING_IN_HELL()
171 0 9146 if $signal =~ /^CH?LD$/ and exists $INC{'Apache.pm'}
179 269 0 if exists $SIG{'CHLD'}
180 268 0 if exists $SIG{'CLD'}
181 268 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 220 99 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 7913 868 unless $kr_has_child_procs or $self->_data_sig_pipe_has_signals
443 396 472 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 8 401 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 2224 238 unless $kr_has_child_procs or $self->_data_sig_pipe_has_signals
762 137 101 if scalar keys %kr_pids_to_events
802 725 9614 unless $signal_pipe_read
825 0 270 if (RUNNING_IN_HELL()) { }
832 0 270 unless ($signal_pipe_write)
851 0 174 if RUNNING_IN_HELL()
860 0 577 if RUNNING_IN_HELL()
862 174 403 unless ($signal_mask_all)
866 0 577 unless sigprocmask(2, $signal_mask_all, $mask_temp)
872 0 577 if RUNNING_IN_HELL()
874 0 577 unless ($signal_mask_none)
878 0 577 unless sigprocmask(2, $signal_mask_none, $mask_temp)
886 193 2 if ($signal_pipe_read)
890 193 2 if ($signal_pipe_write)
908 0 228 if $finalizing
910 0 228 unless (defined $signal_pipe_pid)
918 0 228 if ($$ != $signal_pipe_pid)
978 88 347 if $octets_count
979 119 207 if defined $octets_count
981 88 119 if $! == 11 or $! == 11
997 119 88 unless @pending_signals
1016 0 207 if $signal_src_pid != $$
1018 88 140 if ($signal_name eq 'CHLD') { }
112 28 elsif ($signal_name eq 'PIPE') { }