[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should ask-user-about-supersession-threat be aware of noninteractive
From: |
Eli Zaretskii |
Subject: |
Re: Should ask-user-about-supersession-threat be aware of noninteractive ? (emacs -batch) |
Date: |
Wed, 10 Feb 2016 19:46:07 +0200 |
> Date: Tue, 9 Feb 2016 12:50:57 -0800 (PST)
> From: richard.sharman@mitel.com
> Injection-Date: Tue, 09 Feb 2016 20:50:57 +0000
>
> I'm not sure if this is a bug or not.
>
> When running emacs -batch, if a function modifies a buffer and calls
> save-buffer and there is another emacs -batch also updating the same file,
> one of them can call ask-user-about-supersession-threat [in userlock.el].
>
> This causes the emacs process to hang because read-char-choice never returns.
> (I have a traceback which I could post but is lengthy (91 levels!); it ends
> at pselect and frame 2 is wait_reading_process_output.)
>
> This happened when running make -j 6 and I changed the scenario to not
> happen, but I wondered if ask-user-about-supersession-threat should be act
> upon variable noninteractive.
>
> Or is one supposed to supply a replacement for
> ask-user-about-supersession-threat if running emacs in batch mode?
Please report this (with that traceback, please) using
report-emacs-bug. It's possible that
ask-user-about-supersession-threat should always provide an automatic
response in batch mode.
Thanks.