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:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=xuSC5Vc82emMLOXF
	wLVbLrMimsFLJnhDyW3oCELk42gcGJN6VZjI+3CwS/2nlqzu4d/fgw/OoMjP+L5i
	uh4R9kAkSH4fiE9V5NrwWq0jmUZbU1c43zkbF6Q996MWt/FNs71tmGSzq5qj3xf5
	xTDvqNF3e45YFRNjrxl6Jp3RhCw=
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:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=Iw8jPWcGE2+RxxGHRnJuOt
	ppExc=; b=L5ipOVXSEx2eZVOBPZdVrONvN3UCQwmX29gy4YOPkmjRP1hMvxRwK2
	qP0ZustxLb4/vN8AZ21jAkrzGW5jr9ucyypwSEXMVsoYqiWxnCY9uk4JMieZtiiZ
	nlc33RTFr2G7xV5NJ5SxqeKrXSA5zOAsVCh1MZsoCDzZMnauo1Q1I=
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-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_40,FOREIGN_BODY,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=auf, Diese, sk:Antivir, geprft
X-HELO: mail-wr1-f41.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=subject:to:references:from:message-id:date:user-agent:mime-version         :in-reply-to:content-transfer-encoding;        bh=Sg4B96dQCpfCKKGlCA1/VZG1C45dm9XGfHZ9OteYmeM=;        b=mU3sve5KSyK0XEOznWeEhHLcGCUwM1rtWszYJyueYXPDxDDBeubOsr+DpCqg5m4PDm         0q5QWjnD+4CVoTpozVRlt5Jm/c7Ti81k2LqfrHr2hcG3Ek1X/MELYDm0ip65tKzmENsY         +nBsGidzhojDSxzUInNccc8dK5FH8kDkW8X0ZBaCI9sGeyVh9YWm8BwvkXTdcMKcX4k7         KbMzZtLEh6uBSMSHYgwOSh6KEFuMMpK5oMvo0PXULI4mOTq1+DvI14pdDY8vwtaoi1Ar         gqw4vU+64HQlGRqLYNwjrciNUgGBX+i02pFwIQhNPB0UkFh8HMQG3LyABsJOBmU1JtnO         xF/w==
Subject: Re: SOCK_NONBLOCK not honored
To: cygwin@cygwin.com
References: <SN6PR09MB3247DE8659997EDB93309403A5CE0@SN6PR09MB3247.namprd09.prod.outlook.com> <20181105200454.GC18379@calimero.vinschen.de>
From: Marco Atzeri <marco.atzeri@gmail.com>
Message-ID: <937c8ba3-e5ef-92d9-7e7c-0645e01ca073@gmail.com>
Date: Tue, 6 Nov 2018 10:29:47 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <20181105200454.GC18379@calimero.vinschen.de>
Content-Type: text/plain; charset=utf-8; format=flowed
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id wA69U708031238

Am 05.11.2018 um 21:04 schrieb Corinna Vinschen:
> On Nov  1 20:56, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote:
>> Hi,
>>
>> Looks like CYGWIN defines but does not honor the SOCK_NONBLOCK flag when used with socket(2).
>>
>> (It also defines SOCK_CLOEXEC but I haven't checked whether it is honored -- full disclosure.)
>>
>> Consider the following code:
>
> Spot on, thanks for the testcase.  Neither SOCK_NONBLOCK, nor
> SOCK_CLOEXEC worked as expected.  What was I thinking at the time...?
>
> I pushed a patch and I'm just uploading new developer snapshots to
> https://cygwin.com/snapshots/ while I'm typing.  Please give them a try.
>
>
> Thanks,
> Corinna
>

It reduces the test failures on libuv from 33 to 8  :-))

Thanks
Marco



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


--
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


