[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `message' not outputting the newline "atomically"

From: Stefan Monnier
Subject: Re: `message' not outputting the newline "atomically"
Date: Thu, 20 Jun 2019 09:32:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> $ strace -o /tmp/tr emacs -Q -batch -eval '(message "hello")'
> hello
> $ grep '^write(2,' /tmp/tr
> write(2, "hello", 5)                    = 5
> write(2, "\n", 1)                       = 1
> There should be just one 'write' system call, not two.

Rather than fiddle with the line-buffering, how hard would it be to
change our code such that there's a single call to `fprintf` (or
whichever function it is we use in that code) which prints both the
"hello" and the "\n"?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]