scratch.pl untested

filter: Statementstmt 0.0% 0 / 10 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/ursr/bin/env perl
2  
3 use strict;
4 use warnings;
5  
6 my $pid = fork;
7  
8 unless ($pid) {
9 exec 'perl', '-E', '$SIG{TERM} = sub{ print "TERM\n"; exit 0 }; sleep 1 while 1';
10 }
11  
12 waitpid $pid, 0;