X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: freopen irritates system-call/sh.exe
Date: Thu, 30 Mar 2006 16:30:10 +0100
Message-ID: <067c01c6540e$d4b058c0$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
In-Reply-To: <20060330151002.GJ20907@calimero.vinschen.de>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Note-from-DJ: This may be spam

On 30 March 2006 16:10, Corinna Vinschen wrote:

> On Mar 30 14:56, Eric Blake wrote:
>> Jens Wilken <Jens.Wilken <at> osc-es.de> writes:
>> 
>>> How does freopen-ing stdout and stderr affect subsequent "system" calls?
>> 
>> It shouldn't have any effect on subsequent calls, other than that stderr
>> or stdout is mapped to a new underlying stream.  There are other changes,
>> unrelated to freopen, that do affect consoles popping up or not (and by
>> the way, snapshot 20060329 flashes a console when cygrunsrv starts an
> 
> This has nothing to do with the snapshot.  It's the latest change to
> cygrunsrv which re-introduced the short flash.

  Perhaps so, but perhaps not - see my last post.  I'm fairly sure cygrunsrv
should not involved in invoking expect.exe when I write "make -k check" in a
bash shell in a newly-built gcc object dir!  I also haven't changed my
cygrunsrv; I can make the condition appear or disappear by using today's dll
or the one I built from the 17th.

> Either a console window flashes for a split-second, or you will never
> see a console window, but the console window is then unusable for output
> from the service application.  There's no way around this for now.
> To not lose the output capability, you'll have to live with the flashing
> window.

  Well, there is no service application in this case, and these ones pop up
for as long as the spawned expect.exe process lives.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/

