This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


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

Re: read() returns errno == 1 ("Resource temporarily unavailable")


On Fri, Jan 19, 2001 at 05:25:02PM +0100, Jesper Eskilson wrote:
>
>Hi!
>
>I'm having trouble reading from a file using read(). The symptoms are that
>read() fails setting errno to 11 (EAGAIN). This should AFAIK only be
>possible on O_NONBLOCK filedescriptors, whereas the file in question is not
>opened in non-blocking mode.
>
>Any hints? I saw a fix in Cygwin.dll 1.1.7 which looked related, but the
>bug(?) is still there.

errno == 1 is not EAGAIN.  I assume that you mean errno == 11.

Looking at the code for _read, the only time this should be returned is if
you are using a non-blocking read.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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