X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:references:from:to:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=s45yrdMLLYKm/2lZ
	7y3mhsVBwERdQ1yJDc/aNq09RSiU7s33/IaS0ZqxvqKe1FN+vjVZ3h4kGO5VPsPX
	S/tSw6SRHG3ng3GSbInNMlKXl6iq8HDuWe3GzeGIo7tMrPguZK2dBgI3Q0ilpQ7u
	fSZHy/jEJCd/PydKji/9AC33ysE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:references:from:to:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=2L/5YHA1uBPdBQbELTuOl/
	aF8cU=; b=qJ5hsRFMh6eCv+Fcijcvn1gVQiixY54IT7BM68L5MYHWlE/C+X/zWx
	tOGPfdTbPWE3I++2Rdw9AiKoGVOhpGDGDh1GYoo2fp/9SOilvx0LwAAC7y8GMDQl
	g5eboohMz+U9C0DxH4JS5HhM9oyAAnl07ja2nv+iE+RlApVPLkCW8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=seasoned, Section, clearing, awaits
X-HELO: m0.truegem.net
Subject: Re: cygwin.dll: bug with select on Windows console
References: <5680953B.8050200@glup.org> <568776D4.7020102@glup.org>
From: Mark Geisert <mark@maxrnd.com>
To: cygwin@cygwin.com
Message-ID: <56886F32.1060004@maxrnd.com>
Date: Sat, 2 Jan 2016 16:45:38 -0800
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39
MIME-Version: 1.0
In-Reply-To: <568776D4.7020102@glup.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

John Hood wrote:
> More observations:
>
> * This also happens on a Windows 8.1 VDI install with a different AV/security
> solution-- different enough from my machine that I don't think the Windows/app
> environment is the cause of this, it looks more strongly like a Cygwin issue to me.
>
> * <http://pubs.opengroup.org/onlinepubs/9699919799/functions/pselect.html>
> clearly states that select() must zero out all FD_SET bits when it returns 0.
>
> * Moving the mouse cursor around over the console window (at a bash prompt,
> without mouse modes enabled) makes this issue happen *much* more frequently.

I've looked at the Cygwin source for select(), and maybe other folks have, so 
the issue is not being ignored at least.  It seems to me this odd case (not 
clearing the fd sets on zero return) is being overlooked by Cygwin's rather 
hairy select() implementation.  But I'm just a guy on the mailing list and the 
definitive answer awaits the return of seasoned Cygwin developer(s).  :-)

> I'd investigate further but on current Git sources, 'make' fails for me with this:
>
> /home/cgull/src/newlib-cygwin/newlib/libc/configure: line 2164: syntax error
> near unexpected token `..'
> /home/cgull/src/newlib-cygwin/newlib/libc/configure: line 2164:
> `NEWLIB_CONFIGURE(..)'

Are you following the instructions in the FAQ, Section 6.21?  It's not difficult 
to build the Cygwin DLL but you do want to follow the FAQ because there are 
numerous cul-de-sac opportunities otherwise.

..mark

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

