From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14076 invoked by alias); 4 Jun 2011 01:14:27 -0000 Received: (qmail 14068 invoked by uid 22791); 4 Jun 2011 01:14:27 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from nm8-vm0.bullet.mail.ne1.yahoo.com (HELO nm8-vm0.bullet.mail.ne1.yahoo.com) (98.138.91.23) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 04 Jun 2011 01:14:02 +0000 Received: from [98.138.90.51] by nm8.bullet.mail.ne1.yahoo.com with NNFMP; 04 Jun 2011 01:14:02 -0000 Received: from [98.138.226.59] by tm4.bullet.mail.ne1.yahoo.com with NNFMP; 04 Jun 2011 01:14:02 -0000 Received: from [127.0.0.1] by smtp210.mail.ne1.yahoo.com with NNFMP; 04 Jun 2011 01:14:01 -0000 Received: from cgf.cx (cgf@173.48.46.160 with login) by smtp210.mail.ne1.yahoo.com with SMTP; 03 Jun 2011 18:14:01 -0700 PDT X-Yahoo-SMTP: jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o- Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 7B9F042804E for ; Fri, 3 Jun 2011 21:14:00 -0400 (EDT) Date: Sat, 04 Jun 2011 01:14:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Mercurial not returning with 20110601 snapshot Message-ID: <20110604011359.GA30631@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20110602122725.GA23446@ednor.casa.cgf.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-06/txt/msg00048.txt.bz2 On Thu, Jun 02, 2011 at 09:05:57AM -0400, Chris Sutcliffe wrote: >On 2 June 2011 08:27, Christopher Faylor wrote: >> On Thu, Jun 02, 2011 at 06:43:40AM -0400, Chris Sutcliffe wrote: >>>Testing the 20110601 snapshot I've run in to an issue where Mercurial >>>(specifically python) will not return to the command line when the >>>command completes: >>> >>>I'm guessing this is related to the recent changes to pipe handling? >> >> Like other guesses about this: not necessarily. > >Fair enough, I should know better than to assume. Or, maybe I should just listen to your guesses. You were right. I made a change to the pipe code to speed up select and forgot to detect EOF conditions. It was a pretty glaring oversight on my part. This follows on the heels of my completely screwing up non-blocking reads on pipes so my track record hasn't been great in this area. The problem was easy to duplicate: echo hello | ssh someplace cat There were also several other problems with tty/console handling. My attempt to merge some of the console and pty handling has proved to be pretty tricky to get right. The console problems were tickled by strace so they were harder than usual to track down. Anyway, thanks for noticing the problem. It should be fixed in the snapshot that is being generated now. http://cygwin.com/snapshots/ Only the snapshot > 2011-06-01 will have the fix. 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