From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ho Shui Choy Stanley PS03B NCS To: "'Jonathan Larmour'" Cc: "Ecos-Discuss (E-mail)" Subject: RE: [ECOS] Serial application Date: Wed, 09 May 2001 17:54:00 -0000 Message-id: <19C34CD863B1D4118E2800508BAF663A0112F62B@STONE> X-SW-Source: 2001-05/msg00105.html But with the non blocking option select, the serial device is initialize with a blocking value of "true" which is in the serial_init function. -----Original Message----- From: Jonathan Larmour [ mailto:jlarmour@redhat.com ] Sent: Thursday, May 10, 2001 03:28 To: Ho Shui Choy Stanley PS03B NCS Cc: Ecos-Discuss (E-mail) Subject: Re: [ECOS] Serial application Ho Shui Choy Stanley PS03B NCS wrote: > > Here is what I changed. > > in /io/serial/current/src/common/serial.c > > serial_read { > ... > ... > #ifdef CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING > if (cbuf->blocking) { <- previously checking for false > *len = size; // characters actually read > res = -EAGAIN; > break; > } > #endif // CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING But the check _should_ be for !cbuf->blocking surely? Jifl -- Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062 Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine