On Sun, 23 Oct 2011 14:42:24 -0700, Platonides <Platonides(a)gmail.com>
wrote:
Neil Harris wrote:
Linux provides the setrlimit() system call for
this purpose -- you could
either call it as a wrapper around lilypond, or hack it into a de-fanged
version of Lilypond.
If you're going to be running an auxiliary rendering process or
special-use server anyway, a few moments Googling finds the "softlimit"
program, provided as part of the daemontools package, which looks like
it is intended for providing the sort of limited sandboxing required
here.
- Neil
We already have several ulimit.sh inside phase3/bin for that.
If LilyPond extension were using wfShellExec instead of exec, it would
be automatically limited by $wgMaxShellTime, $wgMaxShellMemory and
$wgMaxShellFileSize (unless on Windows).
Does that even work? I've regularly
had issues with convert commands that
can't get enough mem to finish and are never killed so they sit in the
process list hoarding it.
--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [
http://daniel.friesen.name]