From: Marius Gavrilescu Date: Mon, 21 Apr 2014 16:50:04 +0000 (+0300) Subject: Enforce time limit for interactive verifiers X-Git-Tag: 5999.000_003~10 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=5f8de88806695f8907325fbbe8a689c4d8768f3d;p=gruntmaster-daemon.git Enforce time limit for interactive verifiers --- diff --git a/lib/Gruntmaster/Daemon/Runner/Interactive.pm b/lib/Gruntmaster/Daemon/Runner/Interactive.pm index ecefbff..115e7a1 100644 --- a/lib/Gruntmaster/Daemon/Runner/Interactive.pm +++ b/lib/Gruntmaster/Daemon/Runner/Interactive.pm @@ -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; };