From a3230eaf8e01ef71d3d53673f215e5b27ba9255f Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sun, 6 Dec 2009 18:13:12 +0100 Subject: [PATCH] Limit luatex to 500M of virtual memory. Luatex has the tendency to bring down the entire system when it goes into some infinite loop. --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index a05a298..05bd779 100644 --- a/SConstruct +++ b/SConstruct @@ -19,7 +19,8 @@ if ARGUMENTS.get('once'): else: once = '' -contextBuilder = Builder(action='nice texexec --lua $SOURCE%s' % once, +# Limit to 500MB of virtual memory +contextBuilder = Builder(action='ulimit -v 512000; nice texexec --lua $SOURCE%s' % once, suffix='.pdf', src_suffix='.tex') env.Append(BUILDERS={'Context': contextBuilder}) -- 2.30.2