From 5f8de88806695f8907325fbbe8a689c4d8768f3d Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 21 Apr 2014 19:50:04 +0300 Subject: [PATCH] Enforce time limit for interactive verifiers --- lib/Gruntmaster/Daemon/Runner/Interactive.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }; -- 2.39.2