delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/15/22:17:08

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 15 Feb 2010 22:16:55 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: select() and named pipes
Message-ID: <20100216031655.GC17979@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20091222224309 DOT GA3504 AT GIOVE> <20091223003714 DOT GA4491 AT ednor DOT casa DOT cgf DOT cx> <20091223021219 DOT GA5836 AT GIOVE> <20100103165846 DOT GA3284 AT GIOVE> <20100103191121 DOT GA17057 AT ednor DOT casa DOT cgf DOT cx> <20100215015427 DOT GB5207 AT ednor DOT casa DOT cgf DOT cx> <20100216012055 DOT GA7936 AT GIOVE>
MIME-Version: 1.0
In-Reply-To: <20100216012055.GA7936@GIOVE>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Tue, Feb 16, 2010 at 02:20:55AM +0100, Enrico Forestieri wrote:
>On Sun, Feb 14, 2010 at 08:54:27PM -0500, Christopher Faylor wrote:
>
>> I just checked in YA in my series of attempts to get this working right.
>> It will behave marginally better now but there are still problems if you
>> attempt to write to a fifo before anything is reading it and then try to
>> do a non-blocking read.
>
>Thank you for your efforts. It indeed works better with the 2010-02-15
>snapshot.
>
>In order to help you pinpointing another glitch, I attach here a slightly
>slightly modified version of the original test case and a shell script.
>Launching the program in a terminal and then the shell script in another
>one, it seems that the program hangs on the write() call.
>Apparently, the problem is the O_RDWR flag, as replacing it with O_WRONLY,
>everything works. The test case works with O_RDWR both in cygwin 1.5 and
>linux.

Yes, non-blocking writes are not working.  They never really were, in fact.

cgf

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