From: Matthijs Kooijman Date: Sun, 6 Dec 2009 17:13:12 +0000 (+0100) Subject: Limit luatex to 500M of virtual memory. X-Git-Tag: final-thesis~83 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;ds=sidebyside;h=a3230eaf8e01ef71d3d53673f215e5b27ba9255f;p=matthijs%2Fmaster-project%2Freport.git Limit luatex to 500M of virtual memory. Luatex has the tendency to bring down the entire system when it goes into some infinite loop. --- 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})