}
}
my $nproc = $killuser ? 5 : 1;
+ my $debug = $ENV{TEST_VERBOSE};
%ENV = (ONLINE_JUDGE => 1, PATH => $ENV{PATH}, HOME => $ENV{HOME});
setrlimit RLIMIT_AS, $mlimit, $mlimit or die $! if $mlimit;
setrlimit RLIMIT_FSIZE, $olimit, $olimit or die $! if $olimit;
POSIX::setgid $nobody ? 65534 : USER;
POSIX::setuid $nobody ? 65534 : GROUP;
unshift @ARGV, @sudo;
- say STDERR "Execing: ", join ' ', map { "'$_'" } @ARGV;
+ say STDERR "Executing: ", join ' ', map { "'$_'" } @ARGV if $debug;
exec @ARGV;
}