Re: 2.1.78 read(2) bug

Bill Hawes (whawes@star.net)
Fri, 09 Jan 1998 17:22:34 -0500


Jon Nelson wrote:
>
> I've been experiencing a problem with the 2.1.78 kernel.
> On my 2.0.33 box, read(fd, buffer, 0) (that's a zero) returns
> instantly and gives a return value of 0, always. This is consistent
> with the read(2)'s behavior as documented in the manpage:
>
> If count is zero, read() returns zero and has no other
> results. If count is greater than SSIZE_MAX, the result
> is unspecified.
>
> However, on 2.1.78, read(2) waits for input, which it shouldn't do,
> and in certain situations returns -1 with errno = EAGAIN.

With which devices are you seeing this behavior?

Regards,
Bill