This is the mail archive of the
mailing list for the Cygwin project.
Re: O_NONBLOCK serial I/O blocks on 95, OK on NT
On Wed, Dec 06, 2000 at 02:23:29PM -0500, Larry Hall (RFK Partners, Inc) wrote:
>At 02:08 PM 12/6/2000, Bruce Edge wrote:
>>I'm opening /dev/com1 as follows:
>> fd = open( "/dev/com1", O_RDWR | O_NOCTTY | O_NONBLOCK | O_BINARY );
>>on NT the O_NONBLOCK works fine.
>>on win 95, read( fd, buf, max_len ) blocks.
>>I don't think the termios stuff should affect this, at least if it did, I
>>should be having the same problem under NT.
>>Is there a fix for this?
>>Or, is there any way to check for chars pending before reading?
>>I'm already using select(), which shouldn't even drop out of the wait until
>Perhaps this is related to this?
>If so, you may find some insight by reading this thread...
It's unlikely that this has any bearing. This is a thread on pipes. They
use different mechanisms from serial I/O.
Serial I/O in cygwin uses MS overlapped I/O. Maybe this isn't completely
implemented on w9x.
Want to unsubscribe from this list?
Send a message to email@example.com