[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46388: 27.1; emacs -batch does not output messages immediately when
From: |
Eli Zaretskii |
Subject: |
bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt |
Date: |
Thu, 11 Feb 2021 16:09:28 +0200 |
> From: Ioannis Kappas <ioannis.kappas@gmail.com>
> Date: Thu, 11 Feb 2021 08:10:34 +0000
> Cc: 46388@debbugs.gnu.org
>
> > My reading of the code is that we already fflush stderr after emitting
> > a message, so this should already happen. See message_to_stderr. If
> > that still doesn't help, then there's some buffering in the OS (for
> > example, in the pipe machinery itself), which we cannot control.
>
> the xdisp.c:message_to_stderr() is the first function i studied with
> gdb when I started the investigation. Unless I've missed something,
> it does not seem to lead to calling fflush (under windows at least):
Then maybe this:
> /* Return the error output stream. */
> static FILE *
> errstream (void)
> {
> FILE *err = buferr;
> if (!err)
> return stderr;
> fflush_unlocked (stderr); <<<<<<<<<<<<<<<<
> return err;
> }
should be fixed to fflush 'buferr' instead (or in addition to stderr)?
Paul, isn't that a bug that we fflush stderr here, and not 'buferr'?
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Ioannis Kappas, 2021/02/08
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Ioannis Kappas, 2021/02/08
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Eli Zaretskii, 2021/02/09
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Ioannis Kappas, 2021/02/09
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Eli Zaretskii, 2021/02/09
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Eli Zaretskii, 2021/02/09
- Message not available
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Ioannis Kappas, 2021/02/10
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Eli Zaretskii, 2021/02/10
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Ioannis Kappas, 2021/02/11
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt,
Eli Zaretskii <=
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Ioannis Kappas, 2021/02/11
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Eli Zaretskii, 2021/02/11
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Ioannis Kappas, 2021/02/12
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Eli Zaretskii, 2021/02/12
- bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Paul Eggert, 2021/02/11
bug#46388: 27.1; emacs -batch does not output messages immediately when invoked outside of the command prompt, Eli Zaretskii, 2021/02/08