| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Fri, 19 Jan 2001 12:09:52 -0500 |
| From: | Christopher Faylor <cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: read() returns errno == 1 ("Resource temporarily unavailable") |
| Message-ID: | <20010119120952.A7227@redhat.com> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <u67snmf5x29 DOT fsf AT rachel DOT hq DOT vtech> |
| Mime-Version: | 1.0 |
| User-Agent: | Mutt/1.3.11i |
| In-Reply-To: | <u67snmf5x29.fsf@rachel.hq.vtech>; from jojo@virtutech.se on Fri, Jan 19, 2001 at 05:25:02PM +0100 |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |