[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `message' not outputting the newline "atomically"
From: |
Eli Zaretskii |
Subject: |
Re: `message' not outputting the newline "atomically" |
Date: |
Wed, 03 Jul 2019 10:41:22 +0300 |
> Cc: address@hidden, address@hidden
> From: Paul Eggert <address@hidden>
> Date: Wed, 3 Jul 2019 00:31:18 -0700
>
> Eli Zaretskii wrote:
> > I'm okay with making 'message' write in one go to stderr, but I don't
> > want to pay the price of having stderr buffered globally.
>
> I came up with a fix that does all that. Although the fix does not alter the
> buffering of the stderr stream, it causes 'message' and similar functions to
> write in one go to avoid interleaving output. It also fixes the problem on
> AIX
> and Solaris where a single call to fprintf is implemented by multiple calls
> to
> 'write' even if the diagnostic is short, botching interleaving. It also fixes
> the INT_MAX overflow and memory-allocation issues of the current master's
> implementation of 'message'.
Whoa! Is it really worth all that? Including exposing this to Lisp?
> +#ifndef DOS_NT /* _IOLBF does not work on MS-Windows. */
This should be WINDOWSNT, as the problem is specific to the
MS-Windows runtime.
- Re: `message' not outputting the newline "atomically", (continued)
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/07/01
- Re: `message' not outputting the newline "atomically", Daniele Nicolodi, 2019/07/01
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/07/01
- Re: `message' not outputting the newline "atomically", Daniele Nicolodi, 2019/07/02
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/07/02
- Re: `message' not outputting the newline "atomically", Daniele Nicolodi, 2019/07/02
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/07/03
Re: `message' not outputting the newline "atomically", Daniele Nicolodi, 2019/07/01
Re: `message' not outputting the newline "atomically", Paul Eggert, 2019/07/03
- Re: `message' not outputting the newline "atomically",
Eli Zaretskii <=
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/07/03
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/07/03
- Re: `message' not outputting the newline "atomically", Paul Eggert, 2019/07/03
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/07/03
- `message' not outputting the newline "atomically", Paul Eggert, 2019/07/03
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/07/04
- Re: `message' not outputting the newline "atomically", Paul Eggert, 2019/07/06
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/07/07
- Re: `message' not outputting the newline "atomically", Richard Copley, 2019/07/08
- Re: `message' not outputting the newline "atomically", Eli Zaretskii, 2019/07/08