line |
true |
false |
branch |
57
|
0 |
2 |
unless $ipc_loop |
63
|
0 |
2 |
unless socketpair my $child, my $parent, 1, 1, 0 |
78
|
0 |
9 |
unless defined $vpid |
79
|
0 |
9 |
unless defined $msg |
80
|
4 |
5 |
if $vpid == 0 |
81
|
0 |
9 |
if $DEBUG |
83
|
0 |
9 |
if $msg eq 'close' or $msg eq 'exit' |
93
|
0 |
1 |
unless defined $vpid |
94
|
0 |
1 |
unless defined $msg |
102
|
0 |
0 |
unless defined $host |
103
|
0 |
0 |
unless defined $port |
105
|
0 |
0 |
if ($sock) { } |
106
|
0 |
0 |
unless &_pack_unpack($sock, %args) |
119
|
0 |
0 |
unless defined $host |
120
|
0 |
0 |
unless defined $port |
125
|
0 |
0 |
if ($rv) { } |
126
|
0 |
0 |
unless &_pack_unpack($sock, %args) |
143
|
0 |
0 |
if (my $pack = $args{'pack'} and my $unpack = $args{'unpack'}) { } |
|
0 |
0 |
elsif ($args{'pack'} or $args{'unpack'}) { } |
146
|
0 |
0 |
if (ref $r eq 'HASH' and ref $r->{'a'} eq 'ARRAY' and $r->{'a'}[0] and $r->{'a'}[0] eq 'b') { } |
154
|
0 |
0 |
if (not $r or $@) |
171
|
0 |
3 |
if $DEBUG > 1 |
180
|
0 |
2 |
unless defined $kid_pid |
182
|
1 |
1 |
if ($kid_pid) { } |
186
|
0 |
1 |
if $_->[2] ne $parent |
252
|
2 |
0 |
unless ($ipc_loop) |
262
|
0 |
1 |
unless defined $waited_vpid |
263
|
0 |
1 |
unless defined $waited_msg |
264
|
0 |
1 |
if $waited_vpid == 0 |
267
|
0 |
0 |
if ($from eq $waited_vpid and $msg eq $waited_msg) |
269
|
0 |
0 |
wantarray ? : |
272
|
0 |
1 |
if $DEBUG |
279
|
0 |
3 |
if $DEBUG |
283
|
8 |
8 |
if (@{$snd{$to};}) |
285
|
0 |
8 |
unless ($fh) |
286
|
0 |
0 |
if (@spawn) { } |
290
|
0 |
0 |
if ($self_parent_fh) { } |
291
|
0 |
0 |
if ($self_parent_closed) { } |
302
|
8 |
0 |
unless (exists $w_bufs{$fh}) |
304
|
0 |
8 |
if (my $pack = $pack{$fh}) { } |
311
|
0 |
8 |
if $DEBUG |
318
|
0 |
17 |
if ($DEBUG > 1) |
319
|
0 |
0 |
$DEBUG > 2 ? : |
324
|
0 |
0 |
$can_write ? : |
|
0 |
17 |
if $DEBUG > 1 |
327
|
0 |
9 |
if ($listener{$fh}) |
341
|
8 |
1 |
if ($len) { } |
|
1 |
0 |
elsif (defined $len) { } |
345
|
8 |
0 |
if (length $buf >= 4) |
347
|
8 |
0 |
if (length $buf >= $packet_length) |
350
|
0 |
8 |
if $DEBUG |
353
|
0 |
8 |
if (my $unpack = $unpack{$fh}) { } |
359
|
0 |
8 |
if ($node{$fh}) |
364
|
0 |
8 |
if $DEBUG |
365
|
8 |
0 |
if ($to == $self_vpid) { } |
|
0 |
0 |
elsif ($vpid2fh{$to}) { } |
366
|
0 |
8 |
if $DEBUG |
367
|
1 |
7 |
if (defined $waited_vpid and defined $waited_msg) { } |
370
|
7 |
0 |
if ($msg{$msg}) { } |
373
|
0 |
0 |
if $DEBUG |
377
|
0 |
0 |
if $DEBUG |
383
|
0 |
8 |
if $r_bufs{$fh} |
398
|
0 |
1 |
if (my $node_vpid = $node{$fh}) { } |
400
|
0 |
0 |
if ($msg{'NODE_CLOSED'}) |
401
|
0 |
0 |
$fh->connected ? : |
|
0 |
0 |
unless $closed{$vpid} |
404
|
0 |
1 |
if ($msg{'SPAWN_CLOSED'}) |
405
|
0 |
0 |
unless $closed{$vpid} |
410
|
1 |
0 |
if ($self_parent_fh and $self_parent_fh eq $fh) |
412
|
1 |
0 |
unless (defined $waited_vpid and defined $waited_msg) |
413
|
1 |
0 |
unless (@rcv) |
419
|
0 |
0 |
if $DEBUG |
424
|
2 |
14 |
if (defined $waited_vpid and defined $waited_msg) { } |
427
|
1 |
0 |
if ($msg eq $waited_msg and $from eq $waited_vpid) |
429
|
0 |
1 |
if $DEBUG |
431
|
0 |
1 |
wantarray ? : |
434
|
0 |
1 |
unless (exists $vpid2fh{$waited_vpid}) |
440
|
7 |
0 |
unless $closed{$from} |
443
|
0 |
14 |
if ($need_reset) |
450
|
0 |
8 |
unless $fh2fh{$fh} |
454
|
8 |
0 |
if ($len) { } |
456
|
0 |
8 |
if (length $buf) { } |
462
|
0 |
0 |
if $DEBUG |