delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/20/10:27:43

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 20 Jul 2009 10:27:18 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [1.7] fifo regression
Message-ID: <20090720142718.GC29200@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4A51F60F DOT 2030304 AT byu DOT net> <20090707021839 DOT GA26814 AT ednor DOT casa DOT cgf DOT cx> <20090707180212 DOT GE4609 AT ednor DOT casa DOT cgf DOT cx> <20090719233513 DOT GA15166 AT ednor DOT casa DOT cgf DOT cx> <20090720115758 DOT GE30066 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20090720115758.GE30066@calimero.vinschen.de>
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 Mon, Jul 20, 2009 at 01:57:59PM +0200, Corinna Vinschen wrote:
>On Jul 19 19:35, Christopher Faylor wrote:
>> On Tue, Jul 07, 2009 at 02:02:12PM -0400, Christopher Faylor wrote:
>> >On Mon, Jul 06, 2009 at 10:18:39PM -0400, Christopher Faylor wrote:
>> >>On Mon, Jul 06, 2009 at 07:03:11AM -0600, Eric Blake wrote:
>> >>>But on cygwin 1.7, when you attempt to create multiple writers to a single
>> >>>fifo, the second writer creates an fd just fine but then fails on any
>> >>>attempt to write to that fd:
>> >>
>> >>I see the problem but I don't know how to fix it yet.  It may be a
>> >>couple of days before I can come up with a solution.
>> >
>> >Just an update: I now have a headache.  Thanks again Microsoft for
>> >making it all so complicated.  This is YA example of a feature (Windows
>> >Named Pipes) which behave 98% of the way you'd expect it to work.  The
>> >2% is the killer.
>> 
>> Just an update:  @#$%^&*(!
>
>This sounds promising.

I did get Eric's test case working last night with only an addition of
one or two hundred lines of extra code.  I ended up fixing a
long-standing bug in fhandler_base::read, and found a strange problem
where fd's are inexplicably changed to textmode.  I haven't tracked that
one down yet.

Then, as I was drifting off to sleep,  I realized that my fix only goes
75% of the way towards getting full fifo behavior.  So, I probably still
won't be checking anything in anytime soon.

cgf

(Mr. Fifo)

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