From: Steve Charters Newsgroups: comp.os.msdos.djgpp Subject: Blocking Read Problem with DJGPP Date: Tue, 8 Sep 1998 09:22:42 +0100 Organization: Schlumberger SINet, London, England Lines: 26 Message-ID: NNTP-Posting-Host: alpha.ferndown.ate.slb.com Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Steve Charters To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, Can anyone help me with this. I have a program which reads and write to the serial port. The reads and writes should be non-blocking, so I use fd = open(name, O_RDWR | O_NONBLOCK); Under UNIX on a Sun Sparc compiled with gcc this works fine but when I ported to PC with DJGPP and using COM2 I find that the reads block, and my utility hangs. Anyone got any ideas why this is and a possible work around. Thanks, Steve ------------------------------------------------------------------------------- Steve Charters Ferndown Industrial Estate Ferndown Product Development Centre Wimborne Schlumberger ATE Dorset charters AT ferndown DOT tt DOT slb DOT com BH21 7PP Tel. +44 (0)1202 850833 England