delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/05/06/08:19:16

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Sun, 6 May 2001 16:18:52 +0400
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.45) Personal
Reply-To: egor duda <cygwin-developers AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <27514360751.20010506161852@logos-m.ru>
To: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
CC: cygwin-developers AT cygwin DOT com
Subject: Re: system_printf
In-reply-To: <02d901c0d622$0ebe2b70$0200a8c0@lifelesswks>
References: <01fe01c0d5ec$a9cf09d0$0200a8c0 AT lifelesswks>
<20010506013632 DOT A899 AT redhat DOT com> <022801c0d5ee$a62fd820$0200a8c0 AT lifelesswks>
<027601c0d5fd$28b9a0b0$0200a8c0 AT lifelesswks>
<124512247022 DOT 20010506154338 AT logos-m DOT ru>
<02d901c0d622$0ebe2b70$0200a8c0 AT lifelesswks>
Mime-Version: 1.0

Hi!

Sunday, 06 May, 2001 Robert Collins robert DOT collins AT itdomain DOT com DOT au wrote:

>> >> > >I notice that system_printf no longer writes to the console. Is
>> >> > > there a replacement function that does?
>> >> >
>> >> > system_printf *does* write to the console.
>>
>> it prints to (GetStdHandle (STD_ERROR_HANDLE))
>>
>> this may be console, and may be not (is stderr is redirected).
>>

RC> Thanks for looking... I ran into this minor problem while debugging the
RC> broadcast problem. I cannot explain _why_ its not always printing, just
RC> that it isn't. ( I had unconditional system_printfs as part of the test
RC> code).

RC> I'll see if I can work up a reproducible test case.

i suspect this can be symptom of tty output code. if some application
runs with stderr directed to tty, GetStdHandle (STD_ERROR_HANDLE) is
read end of pipe from slave to master. so, system_printf puts nessage
into this pipe, but will it appear on console -- depends on correct
master-slave communication. there's at least one known unsolved
problem with that communication, which, afair lead to missing output
from system_printf (see thread
http://sources.redhat.com/ml/cygwin-patches/2001-q1/msg00106.html)
please note, that attached patch is incorrect, and i still don't know
a good way to work around it. of course, there may be other problems.

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19


- Raw text -


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