From d31e4469bb6dd11f8555f1797ebdc6186cfa9b42 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Sun, 2 Jun 2013 14:34:19 +0200 Subject: [PATCH] Put a 5-second CPU time limit on the log processing pipeline. --- src/lib/Hydra/Controller/Build.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index a347dd24..e17056bf 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -158,7 +158,7 @@ sub showLog { . " | nix-log2xml | xsltproc " . $c->path_to("xsl/mark-errors.xsl") . " -" . " | xsltproc " . $c->path_to("xsl/log2html.xsl") . " - | tail -n +2"; $c->stash->{template} = 'log.tt'; - $c->stash->{logtext} = `$pipeline`; + $c->stash->{logtext} = `ulimit -t 5 ; $pipeline`; } elsif ($mode eq "raw") {