delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/28/03:43:42

X-Spam-Check-By: sourceware.org
Date: Sat, 28 Jan 2006 09:43:32 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.19-3 parent socket binding remains after closing when spawning child process
Message-ID: <20060128084332.GA15572@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20060123151810 DOT GB8552 AT calimero DOT vinschen DOT de> <20060127194834 DOT 13739 DOT qmail AT web30609 DOT mail DOT mud DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20060127194834.13739.qmail@web30609.mail.mud.yahoo.com>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 Jan 27 14:48, Martin wrote:
> I tried snapshot cygwin-inst-20060127.tar.bz2.  This testcase still
> fails for me.  I could be doing something wrong.  Please, give this
> another try.  Your efforts are appreciated.

Add a sleep (1) to your server process, at some point before calling
connect.  The server side in your test application connects to the
socket before the exec'ed child has started up.  In this period of
time, the listening socket still exists.  That's a simple race and
there's nothing I can do against that.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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