From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9685 invoked by alias); 9 Mar 2012 19:53:30 -0000 Received: (qmail 9614 invoked by uid 22791); 9 Mar 2012 19:53:07 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Fri, 09 Mar 2012 19:52:50 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 8DD8F2C006E; Fri, 9 Mar 2012 20:52:47 +0100 (CET) Date: Fri, 09 Mar 2012 19:53:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Can't reliably redirect standard output from C# program in recent Cygwin Message-ID: <20120309195247.GB18960@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <004e01ccfd70$c69af3f0$53d0dbd0$@motionview3d.com> <005c01ccfd79$6341f980$29c5ec80$@motionview3d.com> <007201ccfe25$130065e0$390131a0$@motionview3d.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <007201ccfe25$130065e0$390131a0$@motionview3d.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2012-03/txt/msg00319.txt.bz2 On Mar 9 18:47, James Johnston wrote: > I can reproduce this: > > C:\cygwin\bin>perl -e 'print "abc";' > abc > C:\cygwin\bin>perl -e 'print "abc";' | more > abc > > C:\cygwin\bin>perl -e 'print "abc";' | more > abc > > C:\cygwin\bin>perl -e 'print "abc";' | more > > C:\cygwin\bin>perl -e 'print "abc";' | more > > C:\cygwin\bin>perl -e 'print "abc";' | more > > I also noticed that the failures took 1 or 2 seconds to run - a significant > delay. The successful runs completed "instantly". The delay comes from writing a stackdump. I don't quite grok the stackdump, though. It seems to imply that the fh->init call dtable::init_std_file_from_handle failed, but I didn't manage to catch the problem in GDB so far. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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