]> iEval git - gruntmaster-daemon.git/commitdiff
Clear environment (except for PATH) and add ONLINE_JUDGE=1
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 25 Jan 2014 19:45:08 +0000 (21:45 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 25 Jan 2014 19:45:08 +0000 (21:45 +0200)
gruntmaster-exec

index 36b71d43319a52b512fcb4bdd74205adf1014ff9..ffdc7bfc3f4ef84a7b083fff1a493f6776f1031a 100755 (executable)
@@ -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;
This page took 0.022946 seconds and 4 git commands to generate.