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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: 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 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