[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: |
Eli Zaretskii |
Subject: |
bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents |
Date: |
Mon, 02 Nov 2020 20:12:52 +0200 |
> 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 19:02:32 +0100
>
> >> 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.
But that means 'fwrite' could return zero, if its very first call to
'write' got interrupted, no? In which case the proposed patch would
not DTRT.
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, LinSun, 2020/11/01
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, LinSun, 2020/11/01
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Eli Zaretskii, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Andreas Schwab, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Eli Zaretskii, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Andreas Schwab, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Eli Zaretskii, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Andreas Schwab, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Eli Zaretskii, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Andreas Schwab, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents,
Eli Zaretskii <=
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Andreas Schwab, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Eli Zaretskii, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Andreas Schwab, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Eli Zaretskii, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Andreas Schwab, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, LinSun, 2020/11/02
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Eli Zaretskii, 2020/11/03
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, LinSun, 2020/11/04
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, Eli Zaretskii, 2020/11/07
- bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents, LinSun, 2020/11/08