> The proper fix here of course is not to close stdin > but rather to run pdflatex with > > -interaction batchmode > > (where it prints nothing on output during the run, > so you need to consult the log file in case of > problems) or with > > -interaction nonstopmode > > where it never stops for input.
Sounds sensible. Han-Wen, could you try this? https://codereview.appspot.com/545620043/