delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/16/00:58:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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, 16 Oct 2002 00:59:41 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: window problem with cygwin-3-13?
Message-ID: <20021016045941.GA22558@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20021015091816 DOT GA784 AT ingber DOT com> <20021015091816 DOT GA784 AT ingber DOT com> <3 DOT 0 DOT 5 DOT 32 DOT 20021015231109 DOT 008125d0 AT h00207811519c DOT ne DOT client2 DOT attbi DOT com>
Mime-Version: 1.0
In-Reply-To: <3.0.5.32.20021015231109.008125d0@h00207811519c.ne.client2.attbi.com>
User-Agent: Mutt/1.4i

On Tue, Oct 15, 2002 at 11:11:09PM -0400, Pierre A. Humblet wrote:
>The program below demonstrates the issue. After the second ioctl, 
>getchar() becomes non-blocking and returns -1 even though it should
>(? I am not an expert on termio ...) wait for a character because of
>    sbuf.c_cc[VMIN] = 1;
>It works as expected with 3-12. This is on WinME.
>
>Incidentally what's happening is that ispell is generating infinitely 
>many "bells" while getting getchar() == -1. They can be heard on the
>console. Under rxvt this eventually causes fflush(stdout) to freeze.

Mega thanks for the test case.  That allowed me to duplicate the problem.
This was caused by some recent changes to Cygwin to properly (?) deal
with VMIN and VTIME.  The description of how this is supposed to work
is pretty straightforward in the linux man page.  You wouldn't think
that implementing things so that they worked that way would be so
hard.  But it is.

I'm generating a new snapshot which should fix this.  I've downloaded
ispell from franken.de and verified that it was previously broken but
seems to work now.  I should probably incorporate this test into the
cygwin test suite.

PLEASE TRY THE SNAPSHOT and verify that I really did fix this.

Thanks again for the test suite.  That always helps the debugging
process immeasurably.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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