This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] [BZ #1190] Make EOF sticky in stdio.
On Feb 12 2018, Zack Weinberg <firstname.lastname@example.org> wrote:
> On Mon, Feb 12, 2018 at 12:22 PM, Andreas Schwab <email@example.com> wrote:
>> On Feb 12 2018, Zack Weinberg <firstname.lastname@example.org> wrote:
>>> That's been unchanged since before 1995. This only matters if the
>>> underlying file has changed in the meantime, of course;
>> Interactive devices like ttys also don't have a sticky EOF.
> Right, I think that if there are any programs this change is likely to
> break, it's programs that use stdio to read from a tty.
On the other hand, it can also fix such programs, by no longer needing
to send EOF twice to stop it from reading further.
Andreas Schwab, SUSE Labs, email@example.com
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."