From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11849 invoked by alias); 27 Feb 2009 22:07:36 -0000 Received: (qmail 11840 invoked by uid 22791); 27 Feb 2009 22:07:35 -0000 X-Spam-Check-By: sourceware.org Received: from pool-173-76-42-111.bstnma.fios.verizon.net (HELO cgf.cx) (173.76.42.111) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Feb 2009 22:07:30 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id BF68013C022 for ; Fri, 27 Feb 2009 17:07:20 -0500 (EST) Received: by ednor.cgf.cx (Postfix, from userid 201) id B553B2B385; Fri, 27 Feb 2009 17:07:20 -0500 (EST) Date: Fri, 27 Feb 2009 22:07:00 -0000 From: Christopher Faylor To: The Vulgar and Unprofessional Cygwin-Talk List Subject: Re: Fw: [1.7] "broken" pipe implementation? Message-ID: <20090227220720.GB21254@ednor.casa.cgf.cx> Reply-To: cygwin-talk@cygwin.com Mail-Followup-To: The Vulgar and Unprofessional Cygwin-Talk List References: <20090219142734.GA22666@ednor.casa.cgf.cx> <20090227005010.GA11675@ednor.casa.cgf.cx> <49A81791.8010002@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49A81791.8010002@gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-talk-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-talk-owner@cygwin.com Reply-To: The Vulgar and Unprofessional Cygwin-Talk List X-SW-Source: 2009-q1/txt/msg00039.txt.bz2 On Fri, Feb 27, 2009 at 04:40:49PM +0000, Dave Korn wrote: >Andrew Schulman wrote: >>>It qualifies as a "What in the world was I thinking?" problem. >> >>No idea what that is. > >The kind of bug you write when you've been up all night writing code, >and you finally crash out, and when you wake up refreshed a few hours >later you look at it and go "My god, this is all gibberish! I must have >gone temporarily mad!". > >Happened to me just the other night. :-P Ah, so it isn't just me. In this case, I cleverly rewrote the named pipe handling to use overlapped I/O and real named pipes but only did 95% of the implementation. I missed the select() part although I have a clear remembrance of implementing it. Must have been a late-night hallucination. That's why I spent the first hour of debugging setting breakpoints and saying "Huh? Why didn't it get there???" cgf