delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/09/14:53:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 9 Mar 2012 20:52:47 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT 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 AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <004e01ccfd70$c69af3f0$53d0dbd0$@motionview3d.com> <005c01ccfd79$6341f980$29c5ec80$@motionview3d.com> <loom DOT 20120309T021648-138 AT post DOT gmane DOT org> <007201ccfe25$130065e0$390131a0$@motionview3d.com>
MIME-Version: 1.0
In-Reply-To: <007201ccfe25$130065e0$390131a0$@motionview3d.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
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 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019