Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Sun, 2 Mar 2003 21:15:30 -0500 From: "Pierre A. Humblet" To: cygwin AT cygwin DOT com Subject: Re: Processes are unable to fully discard their controlling terminal Message-ID: <20030303021530.GA72195301@hpn5170x> Mail-Followup-To: "Pierre A. Humblet" , cygwin AT cygwin DOT com References: <001b01c2e0d1$2393a320$78d96f83 AT pomello> <20030302173304 DOT GC441 AT redhat DOT com> <20030302174328 DOT GD441 AT redhat DOT com> <20030302235026 DOT GA32532 AT redhat DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030302235026.GA32532@redhat.com> User-Agent: Mutt/1.4i On Sun, Mar 02, 2003 at 06:50:26PM -0500, Christopher Faylor wrote: > On Sun, Mar 02, 2003 at 12:43:28PM -0500, 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. > > I've checked in some changes that seem to fix the reported behavior. > > Does the current snapshot rectify this behavior? Now when I start inetd on WinME a DOS Windows pops up. FYI inetd.c contains Cygwin specific code calling AllocConsole(). Perhaps it interacts with your changes. Pierre -- 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/