X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 11 Oct 2011 19:17:54 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Problem redirecting stderr to pipe in subprocess
Message-ID: <20111011171754.GA2172@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4E906DD1.50107@cornell.edu> <4E90C308.9090508@cornell.edu> <20111009235815.GA18203@ednor.casa.cgf.cx> <20111010220608.GA1568@ednor.casa.cgf.cx> <20111011121742.GC21554@calimero.vinschen.de> <20111011170834.GA4522@ednor.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20111011170834.GA4522@ednor.casa.cgf.cx>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
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

On Oct 11 13:08, Christopher Faylor wrote:
> On Tue, Oct 11, 2011 at 02:17:42PM +0200, Corinna Vinschen wrote:
> >On Oct 10 18:06, Christopher Faylor wrote:
> >> When the tty layer in Cygwin was first developed, the model (either in
> >> my head or in reality) was "If you don't have a tty and open a tty, that
> >> becomes your controlling tty".  But, apparently that model changed over
> >> time to something more sensical where you have to explicitly use
> >> ioctl(TIOCSCTTY) to set up a controlling terminal.
> >
> >I don't quite understand this.  The "If you don't have a tty and open a tty,
> >that becomes your controlling tty" is standard POSIX behaviour, isn't it?
> >SUSv4 open writes:
> >
> >  O_NOCTTY
> >
> >    If set and path identifies a terminal device, open() shall not
> >    cause the terminal device to become the controlling terminal for
> >    the process. If path does not identify a terminal device,
> >    O_NOCTTY shall be ignored.
> >
> >The Linux man page contains basically the same.
> 
> Check out the linux info page.  It's more talkative.

Uh, ok.  Thanks for the pointer.


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

