delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/03/28/08:10:58

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 761D5385E017
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1585397410;
bh=uogCTQWLB3Vc5gawzolE0KSMNxSzNrr0HWGRYGEGHTc=;
h=To:References:In-Reply-To:Subject:Date:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=mBx64iPCJuyECK3W52ygDlNmd3MKt7E4znjWvLFY723ZUWTmpX/v9WJ2xXeTvKM4G
f2G9x/FXCNsKS0oO1oFIzt8Z+DWAj8r8V/mSvu/MMj64IjBnKnYmCXOpzHwbNroseX
NiTDhXm3Bl63CbvwvUrPyDWyojm/1miMgaxubykM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 27013385E009
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date
:message-id:mime-version:content-transfer-encoding:thread-index
:content-language;
bh=EBu5DrUp602KhZ5Qs8h70ExKMDGzZLYpBWm51Ti5Y8E=;
b=tWe7Xpsdv5dAL/VTsR8NTvuOtqwHc6AWMnZUXHrH9ib4d54EjI+eWGFWNPNJakx4sw
yAxGA6AaSWyluTSXr9AmyBwBAM38GkfwXLUzKhQk2Jb51gbEVZjsI1eQ68w7UZkqhDIF
Ish7b4XAFvD7Cr0ceAsiLe/kxJJuyk4z/xuBrVsOFfkYaWDHAGPJFyQ8tSvUZXCtQu1G
jKcwvIuPKFrx40QO8V7lKYEN+9+MEAfaFzOJEjiZV5SNQLKmCiIEbHTZ6B8moVKsGa+V
pYPxC/lr741FzuUJBUi9EZKguqzAjLfQuGVyspTrNb2ynBgiiA5HXSyTXV67ocgcm9eC
tLEg==
X-Gm-Message-State: AGi0PuYyS+AsWrvVoWgrQ8MTVHfW/b1j02nH6LUrifXycLd9AmVCchNP
ZzEhPR1fo4Pop/+PAnzhMYO+gxvp
X-Google-Smtp-Source: APiQypJoCCUX5B043snajZUn3j8LNXcoj9rUmAmO4A3ArjkRJziKw2EhVzOLVrA8SkJy2oYbas5ApA==
X-Received: by 2002:a05:651c:404:: with SMTP id
4mr2131755lja.281.1585397405667;
Sat, 28 Mar 2020 05:10:05 -0700 (PDT)
To: "'Ken Brown'" <kbrown AT cornell DOT edu>
References: <1b1401d60296$2769e690$763db3b0$@gmail.com>
<716e2076-f607-454e-2723-937c3959e2a3 AT cornell DOT edu>
<18be01d602ab$0bbfca30$233f5e90$@gmail.com>
<35b43b59-6410-f21f-710c-385e39cbae0b AT cornell DOT edu>
<005201d603ba$2bc8ab20$835a0160$@gmail.com>
<472d1df6-531a-ebd7-4ffa-583a06e270ff AT cornell DOT edu>
<ce4a4877-df77-3400-e8ac-16655b313757 AT cornell DOT edu>
<b311d907-7376-5bc6-3216-7d2b96728dbc AT cornell DOT edu>
<00b901d60447$7ecb4c50$7c61e4f0$@gmail.com>
<f8f5c9b4-9eb9-85b0-ab8f-44b3b2458e0b AT cornell DOT edu>
In-Reply-To: <f8f5c9b4-9eb9-85b0-ab8f-44b3b2458e0b@cornell.edu>
Subject: Sv: Sv: Sv: Sv: Named pipes and multiple writers
Date: Sat, 28 Mar 2020 13:10:04 +0100
Message-ID: <00e001d604f9$d0aa0720$71fe1560$@gmail.com>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQJE9fQg8TMZuJRGwTEKbo0ZGNgDeQHtMggPA01jw/MCH/KUAAKPevBvAf/qW+kC4eksHQHeBGSzAqmcYp4CB8F8l6bVLJvg
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <http://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Kristian Ivarsson via Cygwin <cygwin AT cygwin DOT com>
Reply-To: sten DOT kristian DOT ivarsson AT gmail DOT com
Cc: "'cygwin'" <cygwin AT cygwin DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 02SCAY4T031689

>On 3/27/2020 10:53 AM, sten DOT kristian DOT ivarsson AT gmail DOT com wrote:
>>> On 3/26/2020 7:19 PM, Ken Brown via Cygwin wrote:
>>>> On 3/26/2020 6:39 PM, Ken Brown via Cygwin wrote:
>>>>> On 3/26/2020 6:01 PM, sten DOT kristian DOT ivarsson AT gmail DOT com wrote:
>>>>>> The ENIXIO occurs when parallel child-processes simultaneously 
>>>>>> using O_NONBLOCK opening the descriptor.
>>>>>
>>>>> This is consistent with my guess that the error is generated by 
>>>>> fhandler_fifo::wait.  I have a feeling that read_ready should have 
>>>>> been created as a manual-reset event, and that more care is needed 
>>>>> to make sure it's set when it should be.
>>>>>
>>>>>> I could provide a code-snippet
>>>>>> to reproduce it if wanted ?
>>>>>
>>>>> Yes, please!
>>>>
>>>> That might not be necessary.  If you're able to build the git repo 
>>>> master branch, please try the attached patch.
>> 
>>> Here's a better patch.
>> 
>> 
>> I finally succeeded to build latest master (make is not my favourite 
>> tool) and added the patch, but still no success in my little 
>> test-program (see
>> attachment) when creating a write-file-descriptor with O_NONBLOCK

>Your test program fails for me on Linux too.  Here's the output from one
run:

You're right. That was extremely careless of me to not test this in Linux
first :-)

I can assure that we have a use case that works on Linux but not in Cygwin,
but it seems like I failed to narrow it down in the wrong way

I'll try to rearrange my code (that works in Linux) to mimic our application
but in a simple way (I'll be back)

[snip]

>Ken

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

- Raw text -


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