Subject: Re: bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents

From: Andreas Schwab <[email-masked]>
Date: Mon, 02 Nov 2020 19:58:17 +0100

On Nov 02 2020, Eli Zaretskii wrote:

> Is EINTR considered an error for this purpose?

Sure.

> If not, what exactly is considered an error?  I don't see this clearly
> documented, so it could be something we cannot rely on.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/fputc.html

> In short, it sounds like calling fwrite in a loop will only work by
> sheer luck.

I don't see why.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."