X-Spam-Check-By: sourceware.org
Date: Sat, 28 Jan 2006 09:43:32 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.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@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20060123151810.GB8552@calimero.vinschen.de> <20060127194834.13739.qmail@web30609.mail.mud.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20060127194834.13739.qmail@web30609.mail.mud.yahoo.com>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

