From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35365 invoked by alias); 6 Nov 2018 09:29:53 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 35320 invoked by uid 89); 6 Nov 2018 09:29:53 -0000 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 Received: from mail-wr1-f41.google.com (HELO mail-wr1-f41.google.com) (209.85.221.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Nov 2018 09:29:51 +0000 Received: by mail-wr1-f41.google.com with SMTP id z16-v6so12642230wrv.2 for ; Tue, 06 Nov 2018 01:29:51 -0800 (PST) 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== Return-Path: Received: from ?IPv6:::1? (p200300EE63E68201011D6E993E4DD7CC.dip0.t-ipconnect.de. [2003:ee:63e6:8201:11d:6e99:3e4d:d7cc]) by smtp.gmail.com with ESMTPSA id y76-v6sm2083277wmd.37.2018.11.06.01.29.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 01:29:48 -0800 (PST) Subject: Re: SOCK_NONBLOCK not honored To: cygwin@cygwin.com References: <20181105200454.GC18379@calimero.vinschen.de> From: Marco Atzeri Message-ID: <937c8ba3-e5ef-92d9-7e7c-0645e01ca073@gmail.com> Date: Tue, 06 Nov 2018 09:29:00 -0000 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 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-11/txt/msg00055.txt.bz2 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 honore= d -- 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=C3=BCft. 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