delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/29/17:28:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 29 Sep 2004 17:28:02 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT 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 AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <415B246F DOT 5010103 AT gmx DOT de>
Mime-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019