From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27404 invoked by alias); 11 May 2011 06:35:26 -0000 Received: (qmail 25342 invoked by uid 22791); 11 May 2011 06:34:53 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Wed, 11 May 2011 06:34:37 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id BBC352C0577; Wed, 11 May 2011 08:34:33 +0200 (CEST) Date: Wed, 11 May 2011 06:35:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Who's using "CYGWIN=tty" and why? Message-ID: <20110511063433.GD28594@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20110510211800.CCBDF9D5A21@mail2.intersystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20110510211800.CCBDF9D5A21@mail2.intersystems.com> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-05/txt/msg00143.txt.bz2 On May 10 17:17, Len Giambrone wrote: > This time with a subject; apologies if the first one gets through. > > We use windows native jam which spawns any number of cmd, cygwin, or studio processes. > If we spawn it from a Cygwin terminal that doesn't have CYGWIN=tty set, we get: I assume that most people, like me, don't even know what jam is. Searching for jam on google reminds of needles and haystacks. > The handle is invalid. > > Every time output goes to the screen. > If we use CYGWIN=tty, we get normal output. Kind of weird. The difference is that in tty mode the stdio handles are pipes, while in the notty case the stdio handles are console handles. Usually native Windows applications shouldn't see a difference and even work *better* in notty mode. Actually, if it works with native Win32 processes in a cmd windows, there's no reason it shouldn't work with Cygwin processes in a cmd window in notty mode, since the handles are the same, console handles. Either there's a function call in jam which doesn't work with console handles (a native NT call perhaps?) or jam doesn't expect cmd handles if you start the application differently. Did you ever try to start the Cygwin process using "cmd /c"? 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