This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: select call does block unless data arrives at socket (when waiting for serial port and ip socket)
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 29 Sep 2004 17:28:02 -0400
- Subject: Re: select call does block unless data arrives at socket (when waiting for serial port and ip socket)
- References: <415B246F.5010103@gmx.de>
- Reply-to: cygwin at cygwin dot com
On Wed, Sep 29, 2004 at 11:09:03PM +0200, Stefan Mahr wrote:
>Hi...
>
>I want to use select() to wait for a serial port and a ip socket.
>Following problem:
>If data arrives the serial port, select() works as aspected and returns 1.
>If data arrives the ip socket, select() doesn't return.
>If data arrives the serial port and before there was some data at the ip
>socket,
>select() returns 2. Both file descriptors are set in "fd_set input", and
>all data
>can be read by the next functions.
>
>I am using the cygwin1.dll version 1.5.11 with Windows XP.
>(The same problem with previous versions of cygwin1.dll.)
I'm not sure that there is anyone around who can debug serial problems
unless Brian Ford still is set up to look into this.
If you are interested in investigating this problem yourself, the two
affected files in cygwin are fhandler_serial.cc and select.cc.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/