Enforce time limit for interactive verifiers
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 21 Apr 2014 16:50:04 +0000 (19:50 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 21 Apr 2014 16:50:04 +0000 (19:50 +0300)
lib/Gruntmaster/Daemon/Runner/Interactive.pm

index ecefbff..115e7a1 100644 (file)
@@ -28,7 +28,7 @@ sub run{
                die [WA, "Wrong Answer"] if $?;
        } else {
                try {
-                       $meta->{files}{ver}{run}->($meta->{files}{ver}{name}, fds => [qw/1 >fifo1 0 fifo2 4 >result/], args => [$test]);
+                       $meta->{files}{ver}{run}->($meta->{files}{ver}{name}, fds => [qw/1 >fifo1 0 fifo2 4 >result/], args => [$test], map {defined $meta->{$_} ? ($_ => $meta->{$_}) : () } qw/timeout mlimit/);
                } catch {
                        exit 1;
                };
This page took 0.025391 seconds and 4 git commands to generate.