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' |
94
|
0 |
1 |
unless defined $vpid |
95
|
0 |
1 |
unless defined $msg |
103
|
0 |
0 |
unless defined $host |
104
|
0 |
0 |
unless defined $port |
106
|
0 |
0 |
if ($sock) { } |
107
|
0 |
0 |
unless &_pack_unpack($sock, %args) |
112
|
0 |
0 |
if $DEBUG > 1 |
134
|
0 |
0 |
unless defined $host |
135
|
0 |
0 |
unless defined $port |
140
|
0 |
0 |
if ($rv) { } |
141
|
0 |
0 |
unless &_pack_unpack($sock, %args) |
158
|
0 |
0 |
if (my $pack = $args{'pack'} and my $unpack = $args{'unpack'}) { } |
|
0 |
0 |
elsif ($args{'pack'} or $args{'unpack'}) { } |
161
|
0 |
0 |
if (ref $r eq 'HASH' and ref $r->{'a'} eq 'ARRAY' and $r->{'a'}[0] and $r->{'a'}[0] eq 'b') { } |
169
|
0 |
0 |
if (not $r or $@) |
186
|
0 |
3 |
if $DEBUG > 1 |
195
|
0 |
2 |
unless defined $kid_pid |
197
|
1 |
1 |
if (not $kid_pid) { } |
201
|
0 |
1 |
if $_->[2] ne $parent |
270
|
2 |
0 |
unless ($ipc_loop) |
281
|
0 |
1 |
unless defined $waited_vpid |
282
|
0 |
1 |
unless defined $waited_msg |
283
|
0 |
1 |
if $waited_vpid == 0 |
286
|
0 |
0 |
if ($from eq $waited_vpid and $msg eq $waited_msg) |
288
|
0 |
0 |
wantarray ? : |
291
|
0 |
1 |
if $DEBUG |
296
|
0 |
1 |
wantarray ? : |
303
|
9 |
17 |
defined $to_vpid ? : |
304
|
10 |
15 |
if (@{$snd{$to};}) |
306
|
2 |
8 |
unless ($fh) |
307
|
2 |
0 |
if (@spawn) { } |
308
|
0 |
2 |
unless defined $to_vpid |
311
|
0 |
0 |
if ($self_parent_fh) { } |
312
|
0 |
0 |
if (not $self_parent_closed) { } |
323
|
8 |
0 |
unless (exists $w_bufs{$fh}) |
325
|
0 |
8 |
if (my $pack = $pack{$fh}) { } |
332
|
0 |
8 |
if $DEBUG |
346
|
0 |
9 |
if $DEBUG > 1 |
349
|
8 |
1 |
if ($len) { } |
|
1 |
0 |
elsif (defined $len) { } |
353
|
8 |
0 |
if (length $buf >= 4) |
355
|
8 |
0 |
if (length $buf >= $packet_length) |
358
|
0 |
8 |
if $DEBUG |
361
|
0 |
8 |
if (my $unpack = $unpack{$fh}) { } |
367
|
0 |
8 |
if ($node{$fh}) |
372
|
0 |
8 |
if $DEBUG |
373
|
8 |
0 |
if ($to == $self_vpid) { } |
|
0 |
0 |
elsif ($vpid2fh{$to}) { } |
374
|
0 |
8 |
if $DEBUG |
375
|
1 |
7 |
if (defined $waited_vpid and defined $waited_msg) { } |
378
|
7 |
0 |
if ($msg{$msg}) { } |
381
|
0 |
0 |
if $DEBUG |
385
|
0 |
0 |
if $DEBUG |
392
|
0 |
8 |
if $r_bufs{$fh} |
397
|
0 |
1 |
if (exists $fh2ww{$fh}) |
409
|
0 |
1 |
if (my $node_vpid = $node{$fh}) { } |
411
|
0 |
0 |
if ($msg{'NODE_CLOSED'}) |
412
|
0 |
0 |
$fh->connected ? : |
|
0 |
0 |
unless $closed{$vpid} |
416
|
0 |
1 |
if ($msg{'SPAWN_CLOSED'}) |
417
|
0 |
0 |
unless $closed{$vpid} |
423
|
1 |
0 |
if ($self_parent_fh and $self_parent_fh eq $fh) |
425
|
1 |
0 |
unless (defined $waited_vpid and defined $waited_msg) |
426
|
1 |
0 |
unless (@rcv) |
432
|
0 |
0 |
if $DEBUG |
435
|
1 |
7 |
if (defined $waited_vpid and defined $waited_msg) { } |
438
|
1 |
0 |
if ($msg eq $waited_msg and $from eq $waited_vpid) |
440
|
0 |
1 |
if $DEBUG |
446
|
0 |
0 |
unless (exists $vpid2fh{$waited_vpid}) |
453
|
7 |
0 |
unless $closed{$from} |
465
|
0 |
8 |
if $DEBUG > 1 |
466
|
0 |
8 |
unless $fh2fh{$fh} |
470
|
8 |
0 |
if ($len) { } |
472
|
0 |
8 |
if (length $buf) { } |
480
|
0 |
0 |
if $DEBUG |