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

Can anybody confirm this?
I am able to reproduce the bug but it is a lengthy process and not
suitable for this method of information conveyance.

--
Jon Nelson
U of MN Housing and Res. Life Computing Supervisor
nels0988@tc.umn.edu

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