Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3EF60947.AD6DB15A@dessent.net>
Date: Sun, 22 Jun 2003 12:53:43 -0700
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: stderr outputs veerrrryyy slowly
References: <3EF099C8.8FDEC855@dessent.net> <3EF09ED6.F4943C46@dessent.net> <3EF0B792.40204@cygwin.com> <3EF0BFA2.99CCC92A@dessent.net> <3EF26B27.1020203@cygwin.com> <20030620021155.GA19483@redhat.com> <3EF553B3.68EAF8FA@dessent.net> <20030622153512.GB28328@redhat.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Christopher Faylor wrote:

> >Hmmm.  Well, I managed to come up with this minimal testcase:
> 
> There is no need for a test case.  I already mentioned that this is a
> known issue and pinpointed where the problem lies.

Fair enough.

> >Can anyone make heads (or tails) of this now?
> 
> Read my original message.  stderr does not buffer its output.  stdout does.

Okay, but I'm afraid that doesn't quite compute to me, maybe you could
clarify:

- If it's flushing on every character, then why is the output speed
acceptable when using fputs/fprintf or anything except fputc?  i.e. why
do I get the 300-baud-modem emulation only in a few cases?

- Why does it take so long (10ms) to flush the stream?  

- Why does it only happen with 'tty' set?

Sorry if I'm being dense.  I was also going to ask what the heck newlib
was but I figured that out on my own. :-)

Thanks,
Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

