Closed
Description
the latex compilation command in the old editor was wrapped via flock
# exclusive lock, wait 5 secs to run or fail, exit code on timeout acquiring lock is 99,
# release read lock to avoid stuck subprocesses to interfere, file descriptor 9 points to lockfile (derived from tex file)
flock = "flock -x -o -w 5 9 || exit 99;"
# yes x business recommended by http://tex.stackexchange.com/questions/114805/pdflatex-nonstopmode-with-tikz-stops-compiling
latex_cmd = "( #{flock} yes x 2> /dev/null | #{command}; echo '#{sha_marker}'; test -r '#{sagetex_file}' && sha1sum '#{sagetex_file}' ) 9> '.#{@filename_tex}.lock'"
and later
if output.exit_code == 99
log = 'Timeout: ongoing concurrent LaTeX operation.'
right now in the new editor, we do see some piling up latex commands. we should come up with an improved solution by maybe picking up on the idea of piping yes x 2> /dev/null | ...
into the running command?
figuring out how such a document looks like where this happens to make this reproducible might be very helpful, too...