[PATCH] [BZ #1190] Make EOF sticky in stdio.

Zack Weinberg zackw@panix.com
Mon Feb 12 18:26:00 GMT 2018


On Mon, Feb 12, 2018 at 12:22 PM, Andreas Schwab <schwab@suse.de> wrote:
> On Feb 12 2018, Zack Weinberg <zackw@panix.com> 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.  I could even
see an argument for giving stdin, specifically, non-sticky EOF when
connected to a terminal (kinda like how stdout is line-buffered when
connected to a terminal). But I would want some evidence that there
_are_ programs that would break without that, before we spend any time
coding it up.

zw



More information about the Libc-alpha mailing list