This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]