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
Date: Sat, 14 Sep 2002 23:45:36 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: Question about cygwin process behaviour and bash interactive mode
Message-ID: <20020915034536.GE19955@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <LPEHIHGCJOAIPFLADJAHAELMCMAA.chris@atomice.net> <LPEHIHGCJOAIPFLADJAHEELMCMAA.chris@atomice.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <LPEHIHGCJOAIPFLADJAHEELMCMAA.chris@atomice.net>
User-Agent: Mutt/1.4i

On Sat, Sep 14, 2002 at 08:36:08PM +0100, Chris January wrote:
>Upon further examination it would appear this is a bug in the tty
>handling code.  First of all, this behaviour is only observed when the
>tty flag is set in the CYGWIN environment variable.  It seems that the
>tty code uses pipes for some reason or another (see tty::make_pipes).

Yeah, it's that wacky tty code in cygwin, always doing wild things like
setting up pipes and stuff.

>However, if a non-cygwin program is launched, which then launches
>another cygwin program, the second cygwin program doesn't detect that
>it's stdin and stdout pipes were created by the tty code (and hence
>should be handled by fhandler_tty).  I don't really understand this
>code well enough to fix this - perhaps someone else could take a look?

It's not a bug.  It's a "don't do that".

All sorts of information gets lost if you have a cygwin program call a
windows program which calls a cygwin program.  The 'ttyness' of a pipe
is only part off the lost info.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

