www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/24/10:34:40

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <3749640E.8DEB1931@home.email.ne.jp>
Date: Mon, 24 May 1999 23:37:07 +0900
From: Kazuhisa Ichikawa <ki AT home DOT email DOT ne DOT jp>
Reply-To: ki AT home DOT email DOT ne DOT jp
X-Mailer: Mozilla 4.5 (Macintosh; I; PPC)
X-Accept-Language: ja
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
CC: Chris Faylor <cgf AT cygnus DOT com>, Mumit Khan <khan AT xraylith DOT wisc DOT edu>
Subject: Re: B20.1: It takes hitting RET key twice to make select() recognize
input from stdin
References: <374570AC DOT 5187F546 AT home DOT email DOT ne DOT jp> <199905221824 DOT NAA00889 AT mercury DOT xraylith DOT wisc DOT edu> <19990523003643 DOT A1344 AT cygnus DOT com>

Chris Faylor wrote:
> 
> On Sat, May 22, 1999 at 01:24:17PM -0500, Mumit Khan wrote:
> >Kazuhisa Ichikawa <ki AT home DOT email DOT ne DOT jp> writes:
> >>
> >> Under cygwin b20.1, select() does not correctly detect input from stdin. That
> >>  is,
> >> if I type a character and hit RET key once, select() returns 0 as the number
> >> of
> >> bits set in the bit masks. If I hit the RET key the second time, select()
> >> correctly returns 1.
> >
> >>
> >> To reproduce the problem, just compile the attached test case and run it as:
> >>
> >>         gcc -g -o select_test.exe select_test.c
> >>         ./select_test.exe
> >
> >I can't reproduce your problem on either NT or Win95. I do see different
> >behaviour if set the tty in CYGWIN variable (before starting bash), but
> >either case select returns 1 as expected. With CYGWIN=tty, I see the
> >same behaviour as on Linux.
> 
> This behavior should be fixed (or at least different) in recent snapshots.
> I rewrote the console handling a month or so ago.


Today I tested the 1999-MAY-19 snapshot and verified that the problem is fixed.

Thank you.

Kaz

-- 
Kazuhisa Ichikawa
Kawasaki Japan
ki AT home DOT email DOT ne DOT jp

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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