From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by sourceware.org (Postfix) with ESMTPS id BB4C7385E009 for ; Thu, 26 Mar 2020 22:02:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BB4C7385E009 Received: by mail-lf1-x132.google.com with SMTP id c5so6227617lfp.5 for ; Thu, 26 Mar 2020 15:02:00 -0700 (PDT) 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=8DJHw7cUj5rAj03lkKyjysm7SsLOy0PBGGXeV4iIPHo=; b=LhDLLtbsjlUM8gGYBsnVD7SMf/TE1RIjOxkUiFpdgKbM4RwQymM+gi47Qsu/lRmSYl z6tEpKK6P2S7KpPpGgDaS2reezIZ8onu9Poj+MsSjOcUlC6dGvqa3dycfiRnGxnKezFe npTw8QrZDnyeyZ5829sm5rAk2deyuC9rrrXyjC4wSVajAhEkJh2jEIu5JNWOuTOipX1S p2aHJqpo31P5/UPPo97RhsvOr2dIyEvjkR6Szfc7x1jLtsfeVnj5+5BECt1oMCagnyyR DLT42PnrJo2i+Ww8LbUNSNRqttsu3g57KGUNF3qBIISG9hyB5eAfkE+zz5w7E23Lk680 to8g== X-Gm-Message-State: ANhLgQ1hQBculLs3hPkvvnIn4E50bL5utNWSOdEcr3PIHRGXZGkYHROQ vaCSFrYhd+tGX8RJdQP94QAfA39K X-Google-Smtp-Source: ADFU+vuFbcN8SRc/qEMQ22HytCKNWlKnGSD9Y/EdHaZkzLySwbXO09sjP3aEt8M151y7McymV/gXsA== X-Received: by 2002:a19:7907:: with SMTP id u7mr7103084lfc.18.1585260119287; Thu, 26 Mar 2020 15:01:59 -0700 (PDT) Received: from JOKK (87-249-164-127.ljusnet.se. [87.249.164.127]) by smtp.gmail.com with ESMTPSA id 15sm2131096lfr.17.2020.03.26.15.01.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2020 15:01:58 -0700 (PDT) From: To: "'Ken Brown'" Cc: "'cygwin'" References: <1b1401d60296$2769e690$763db3b0$@gmail.com> <716e2076-f607-454e-2723-937c3959e2a3@cornell.edu> <18be01d602ab$0bbfca30$233f5e90$@gmail.com> <35b43b59-6410-f21f-710c-385e39cbae0b@cornell.edu> In-Reply-To: <35b43b59-6410-f21f-710c-385e39cbae0b@cornell.edu> Subject: Sv: Sv: Named pipes and multiple writers Date: Thu, 26 Mar 2020 23:01:58 +0100 Message-ID: <005201d603ba$2bc8ab20$835a0160$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJE9fQg8TMZuJRGwTEKbo0ZGNgDeQHtMggPA01jw/MCH/KUAKdCsowA Content-Language: en-gb X-Spam-Status: No, score=-1.8 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2020 22:02:02 -0000 >> [snip] >>>> As far as I can see, reading through history, this have been a known >>>> issue for quite some time, but it seems like there have been some >>>> attempts to solve it, e.g. in the branch topic/fifo (by Ken Brown) >> >> [snip] >>>> Does anyone have any knowledge about if this (topic/fifo branch) is >>>> working and/or if it is somehow planned to make it into the master >>>> branch and end up in a future release ? >> >>> That branch is obsolete. Support for multiple writers was added to >>> Cygwin >> as of release 3.1.0. >> >> Ok, thanks, but we're running 3.1.4 (and tested 3.1.5) but do still >> have problems (experiencing ENXIO (No such device or address)) but >> actually (as far as we see) with the 3:rd writer ? >> >> We need to investigate the issue more thoroughly and might get back >> when we have more knowledge >Does the ENXIO come from fhandler_fifo::wait? If so, it's quite possible that there's a bug involving read_ready in my code. Our application is a bit complex and I have now narrowed it down The ENIXIO occurs when parallel child-processes simultaneously using O_NONBLOCK opening the descriptor. We're sometimes opening it blocking and sometimes non-blocking and it seems like when the 2:nd non-blocking process tries to open it gets ENIXIO. The child process open and closes the fifo-descriptor for writing multiple times. I could provide a code-snippet to reproduce it if wanted ? Tnx for showing interest btw Kristian >Ken