Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Fri, 17 Aug 2001 09:58:44 +0200
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: void tty association
Message-ID: <20010817095844.B16162@cygbert.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <3B7C42A2.77984F60@corp.earthlink.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3B7C42A2.77984F60@corp.earthlink.net>; from rbrownjr@corp.earthlink.net on Thu, Aug 16, 2001 at 03:01:06PM -0700

On Thu, Aug 16, 2001 at 03:01:06PM -0700, Robert L. Brown JR wrote:
> Hello,
> 
>   I'm trying to figure out how to remove the  "tty association" of the control
> terminal
> from a child process in CYGWIN  .
> 
> Under SYSV I would call setpgrp()
> 
> In BSD, I would call
>    fd=open("/dev/tty", _O_RDRW);
>    ioctl(fd, TIOCNOTTY, 0);
> 
> The CYGWIN API Reference mentions tcsetpgrp().
> When I do "man tcsetpgrp" under CYGWIN, I get nothing.
> I've looked at the tcsetpgrp() call manpage under Solaris and
> it says that it only change the pgid of the controlling terminal.
> 
> How do you remove the tty association in CYGWIN?

setsid().

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

