use Time::HiRes qw/alarm/;
my (@fds, $timeout, $mlimit, $olimit);
+my $close = 1;
+
GetOptions(
"fd=s" => \@fds,
"timeout=f" => \$timeout,
"mlimit=i" => \$mlimit,
"olimit=i" => \$olimit,
+ "close!" => \$close,
);
my $ret = fork // die 'Cannot fork';
exit !say AC, "\nAll OK";
} else {
$^F = 50;
- POSIX::close $_ for 0 .. $^F;
+ if ($close) {
+ POSIX::close $_ for 0 .. $^F;
+ }
for my $fdstring (@fds) {
my ($fd, $file) = split ' ', $fdstring, 2;
open my $fh, $file or die $!;