From: Marius Gavrilescu Date: Sat, 25 Jan 2014 19:45:08 +0000 (+0200) Subject: Clear environment (except for PATH) and add ONLINE_JUDGE=1 X-Git-Tag: 5999.000_001~35 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=50cdf3cbd2e4646d4f1712931403a91c16072165;p=gruntmaster-daemon.git Clear environment (except for PATH) and add ONLINE_JUDGE=1 --- 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;