X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 24 Jul 2009 16:55:16 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: [1.7] fifo regression Message-ID: <20090724205516.GA15993@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> <20090720142718 DOT GC29200 AT ednor DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090720142718.GC29200@ednor.casa.cgf.cx> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 10:27:18AM -0400, Christopher Faylor wrote: >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. I've checked this in but I'm not done yet. I was hoping to implement this fully but I probably won't have a chance for at least a week. 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