From 50cdf3cbd2e4646d4f1712931403a91c16072165 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 25 Jan 2014 21:45:08 +0200 Subject: [PATCH] Clear environment (except for PATH) and add ONLINE_JUDGE=1 --- gruntmaster-exec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gruntmaster-exec b/gruntmaster-exec index 36b71d4..ffdc7bf 100755 --- a/gruntmaster-exec +++ b/gruntmaster-exec @@ -11,4 +11,6 @@ my ($mlimit, $olimit, @args) = @ARGV; setrlimit RLIMIT_AS, $mlimit, $mlimit or die $! if $mlimit; setrlimit RLIMIT_FSIZE, $olimit, $olimit or die $! if $olimit; + +%ENV = (ONLINE_JUDGE => 1, PATH => $ENV{PATH}); exec @args; -- 2.30.2