delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/13/23:34:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: Sun, 13 Nov 2005 23:34:46 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: setsid() does not call FreeConsole() even if all files are closed
Message-ID: <20051114043446.GA31991@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <4377651F DOT 9050400 AT t-online DOT de> <Pine DOT GSO DOT 4 DOT 63 DOT 0511131602070 DOT 21239 AT slinky DOT cs DOT nyu DOT edu> <4377C3A7 DOT 9040703 AT t-online DOT de> <20051114012905 DOT GA26784 AT trixie DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
In-Reply-To: <20051114012905.GA26784@trixie.casa.cgf.cx>
User-Agent: Mutt/1.5.8i

On Sun, Nov 13, 2005 at 08:29:05PM -0500, Christopher Faylor wrote:
>On Sun, Nov 13, 2005 at 11:52:23PM +0100, Christian Franke wrote:
>>Igor Pechtchanski wrote:
>>
>>>[...]
>>>
>>>Yep, so, as CGF noted, try
>>>
>>>$ /usr/sbin/syslogd >/dev/null 2>&1 </dev/null
>>>$ exit
>>
>>
>>That makes no difference. Shell exits but console window persists (at 
>>least on XP SP2) until syslogd is terminated.
>>
>>Did you get a different result?
>
>No, you're right.  I must have been hallucinating because I can't duplicate
>the result that I thought I saw previously.  Reading the rest of the strace
>was instructive and I see what the problem is now.
>
>I hope to produce a fix soon.  Sorry for the misinformation.

I'm uploading a snapshot which should fix the problem when CYGWIN=notty.
The console will stay attached when CYGWIN=tty, however, and I can't convince
myself that this is good behavior.  I'll look at that more tomorrow.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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