emacs-devel
[Top][All Lists]
Advanced

[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, 26 Jun 2019 22:11:42 +0300

> Cc: address@hidden, address@hidden, address@hidden
> From: Paul Eggert <address@hidden>
> Date: Wed, 26 Jun 2019 11:58:26 -0700
> 
> Emacs contains many fprintf calls like this:
> 
>    fprintf (stderr, "Using %s\n", term);
> 
> Here, TERM is typically a short string. On AIX and Solaris, this fprintf is 
> implemented via three 'write' syscalls - one for "Using ", one for the 
> contents 
> of TERM, and one for "\n". These outputs will be broken up and hard-to-read 
> on 
> AIX and Solaris, if Emacs runs in parallel with other programs also 
> generating 
> stderr output. Using line-buffering fixes this.

Can't we also fix that by replacing the above with 'sprintf' followed
by 'write'?  Or some other similar solution?



reply via email to

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