Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 29 Sep 2004 17:28:02 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: select call does block unless data arrives at socket (when waiting for serial port and ip socket)
Message-ID: <20040929212802.GA17757@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <415B246F.5010103@gmx.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <415B246F.5010103@gmx.de>
User-Agent: Mutt/1.4.1i

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/

