﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
247	libc: feof(pipe_handle) keeps returning 0 after pipe is closed	dmik	bird	"Given that stdin of a process is an end of an OS/2 named pipe, the following loop
{{{
while (!feof (stdin))
    fread (buf, 1, sizeof (buf), stdin);
}}}
will not stop when the other end of the pipe is closed.

While one may argue that the loop is incorrect (since besides the EOF there may be e.g. a permanent read error that isn't checked in the loop), the closed pipe is clearly an EOF condition.

On Linux, the above code does stop when the other end of the pipe is closed and there are some programs that rely on that."	defect	closed	normal	libc-0.6.5	libc-backend	0.6	normal	fixed		
