delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/02/19:46:03

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
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 DOT 8050200 AT glup DOT org> <568776D4 DOT 7020102 AT glup DOT org>
From: Mark Geisert <mark AT maxrnd DOT com>
To: cygwin AT cygwin DOT 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>

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

- Raw text -


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