|
|
Created:
5 years ago by hanwenn Modified:
5 years ago CC:
lilypond-devel_gnu.org Visibility:
Public. |
DescriptionAvoid interaction in tex invocations
Patch Set 1 #Patch Set 2 : lilylib #Patch Set 3 : nonstopmode #
MessagesTotal messages: 16
Never seen such code before, but if it fixes an issue... :-)
Sign in to reply to this message.
On 2020/02/22 22:01:10, lemzwerg wrote: > Never seen such code before, but if it fixes an issue... :-) it's a cut and paste from the internet, https://blog.apokalyptik.com/2007/10/24/bash-tip-closing-file-descriptors/ I'm surprised that make passes on the console stdin to child processes, but it does appear to happen.
Sign in to reply to this message.
On 2020/02/22 22:08:33, hanwenn wrote: > On 2020/02/22 22:01:10, lemzwerg wrote: > > Never seen such code before, but if it fixes an issue... :-) > > it's a cut and paste from the internet, > https://blog.apokalyptik.com/2007/10/24/bash-tip-closing-file-descriptors/ > > I'm surprised that make passes on the console stdin to child processes, but it > does appear to happen. The default for _any_ program is to pass all open file descriptors it receives, most certainly the standard file descriptors, on to children. 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.
Sign in to reply to this message.
> 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?
Sign in to reply to this message.
nonstopmode
Sign in to reply to this message.
On 2020/02/23 06:28:27, lemzwerg wrote: > > 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? DOne
Sign in to reply to this message.
LGTM, thanks!
Sign in to reply to this message.
On 2020/02/22 23:22:43, dak wrote: > <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">在2020/02/22 22:08:33上,hanwenn寫道:</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >在2020/02/22 22:01:10,lemzwerg寫道:</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >>以前從未見過這樣的代碼,但是如果它解決了問題... :-)</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > > </font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >這是互聯網上的剪切和粘貼,</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > > </font></font>https://blog.apokalyptik.com/2007/10/24/bash-tip-closing-file-descriptors/<font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > > </font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >我很驚訝在控制台stdin上將make傳遞給子進程,但是它</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >確實發生了。</font></font><font></font
Sign in to reply to this message.
On 2020/02/22 23:22:43, dak wrote: > <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">在2020/02/22 22:08:33上,hanwenn寫道:</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >在2020/02/22 22:01:10,lemzwerg寫道:</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >>以前從未見過這樣的代碼,但是如果它解決了問題... :-)</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > > </font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >這是互聯網上的剪切和粘貼,</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > > </font></font>https://blog.apokalyptik.com/2007/10/24/bash-tip-closing-file-descriptors/<font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > > </font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >我很驚訝在控制台stdin上將make傳遞給子進程,但是它</font></font><font></font><font stylt;"><font style="vertical-align: inherit;"> > >確實發生了。</font></font><font></font> > <font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"它收到的所有打開的文件描述符,</font></font><font></font><font sty: inherit;"><font style="vertical-align: inherit;"> > 最肯定的是標准文件描述符,適用於子級。</foherit;">正確的解決方法</font></font><font></font,而是使用以下命
Sign in to reply to this message.
On 2020/02/23 19:05:02, hanwenn wrote: > <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">在2020/02/23 06:28:27,lemzwerg寫道:</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >>這裡正確的解決方法當然不是關閉stdin</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >>而是使用以下命令運行pdflatex</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >></font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >-交互批處理模式</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >></font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >>(在運行期間,它不會在輸出中顯示任何內容,</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >>因此,如果出現以下情況,您需要查閱日誌文件</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >>問題)或</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >></font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >-互動不間斷模式</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >></font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >>從不停止輸入。</font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > > </font></font><font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > >聽起來很明智。</font><font style="vertical-align: inherit;">韓文你可以試試嗎</font></font><font></font> > <font></font><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> > Done</font></font> 去死
Sign in to reply to this message.
commit bed9afff763d274af3a2608bdbbc61c807653dbd (origin/staging, origin/master, staging, lylog) Author: Han-Wen Nienhuys <hanwen@lilypond.org> Date: Sat Feb 22 22:36:33 2020 +0100 Avoid interaction in tex invocations https://sourceforge.net/p/testlilyissues/issues/5784 http://codereview.appspot.com/545620043
Sign in to reply to this message.
|