lkml.org 
[lkml]   [1998]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.1.78 read(2) bug
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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.019 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site