Put a 5-second CPU time limit on the log processing pipeline.

This commit is contained in:
Petr Rockai 2013-06-02 14:34:19 +02:00
parent 1e1a1f0838
commit d31e4469bb

View file

@ -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") {