delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/14/23:46:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sat, 14 Sep 2002 23:45:36 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Question about cygwin process behaviour and bash interactive mode
Message-ID: <20020915034536.GE19955@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <LPEHIHGCJOAIPFLADJAHAELMCMAA DOT chris AT atomice DOT net> <LPEHIHGCJOAIPFLADJAHEELMCMAA DOT chris AT atomice DOT net>
Mime-Version: 1.0
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/

- Raw text -


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