www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/11/08:30:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sun, 11 Apr 2010 14:30:34 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Usage of _exit(0) closes fd's of parent process
Message-ID: <20100411123034.GP28908@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20100411054851 DOT GA25578 AT roll> <20100411062918 DOT GB7269 AT ednor DOT casa DOT cgf DOT cx> <4BC1B720 DOT 8060402 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <4BC1B720.8060402@gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Apr 11 12:48, Dave Korn wrote:
> On 11/04/2010 07:29, Christopher Faylor wrote:
> > On Sun, Apr 11, 2010 at 01:48:51AM -0400, tmhikaru AT gmail wrote:
> 
> >> establishes a tcp connection in the parent, 
> 
> > your conclusions about the problem.  For instance, what does "stays
> > connected" mean?  Are you using sockets, pipes, a file, shared memory,
> > etc.?
> 
>   Call it guesswork or an assumption if you like, but I think he's using a TCP
> socket!  Wasn't there a thread like this just recently that Corinna was
> helping someone with a problem and it was to do with some kind of "winsock
> handles aren't quite like other handles when it comes to duplicating them"
> problem?  I'll have a search through my old emails and see if I can find it.

None of the problems discussed was about accidental closing of handles
in parent processes.  There's a lot of weirdness in WinSock, but this
one I never encountered.

Anyway, a *simple* testcase in plain C with only the bare minimum of
code to reproduce the problem could be helpful.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019