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
Message-ID: <004701c2e0e4$fa966200$78d96f83@pomello>
From: "Max Bowsher" <maxb@ukf.net>
To: <cygwin@cygwin.com>
References: <001b01c2e0d1$2393a320$78d96f83@pomello> <20030302173304.GC441@redhat.com> <20030302174328.GD441@redhat.com>
Subject: Re: Processes are unable to fully discard their controlling terminal
Date: Sun, 2 Mar 2003 17:55:57 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Christopher Faylor wrote:
> On Sun, Mar 02, 2003 at 12:33:04PM -0500, Christopher Faylor wrote:
>> On Sun, Mar 02, 2003 at 03:33:56PM -0000, Max Bowsher wrote:
>>> Processes that attempt to shed their controlling terminal do so
>>> well enough for the tty to show as ? in ps output, but they still
>>> keep the console window they were launched from open, after all
>>> other processes using it have exited.
>>> 
>>> This is particularly annoying with ssh-agent - if I exit the shell
>>> in the terminal that launched it, that terminal becomes a zombie,
>>> hanging around for no purpose. If I close that window using the
>>> Windows close box, the ssh-agent is killed.
>>> 
>>> I'm not an expert in the ways of Unix ttys. Can anyone help me
>>> understand where the problem lies?
>> 
>> setsid()
> 
> I think I see the problem.  It will be tricky to fix but I'll see
> what I can do.

Wow! Thanks!

You realize, you can no longer claim to be mean.... :-)


Max.


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

