bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Andreas Schwab
Subject: bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents
Date: Mon, 02 Nov 2020 19:02:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

On Nov 02 2020, Eli Zaretskii wrote:

>> From: Andreas Schwab <schwab@linux-m68k.org>
>> Cc: lin.sun@zoom.us,  larsi@gnus.org,  sunlin7@yahoo.com,
>>   44320@debbugs.gnu.org
>> Date: Mon, 02 Nov 2020 18:36:09 +0100
>> 
>> On Nov 02 2020, Eli Zaretskii wrote:
>> 
>> > So it looks like only the last call didn't write anything?
>> 
>> Correct.  A partial write never reports an error.
>
> Not sure I understand the last sentence: in this case 'fwrite' should
> have returned a value less than the amount it was asked to write, and
> errno should have been set to EINTR, correct?

Only when it actually writes the data.  Without fflush, you will never
know when that happens.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

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