This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't reliably redirect standard output from C# program in recent Cygwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]