reitzig / ltx2any

Yet another LaTeX build wrapper, with one or two nifty features
GNU General Public License v3.0
59 stars 4 forks source link

Multiple instances with -d cause memory leak #7

Closed akerbos closed 11 years ago

akerbos commented 11 years ago

When multiple instances run in daemon mode in the same directory, they keep copying the others' temp folders into their own. This results in the temp folders size to explode. Since furthermore all instances listen to changes in the others' temp folders, this causes extreme memory and CPU usage.

Exclude all temp folders from listening and copying.

akerbos commented 11 years ago

Proposal I: put a hidden file in the tmp folder. Check all files in the current directories for that filename and don't copy and listen to changes in those (i.e. other temp folders).

Proposal II: ignore all folders that end in _tmp -- not robust?

Proposal III: move tmp folder to /tmp -- inconvenient for accessing logs of failed runs?