Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Nov 1998 11:37:37 -0800 (PST)
From:      Marc Slemko <marcs@znep.com>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: bind()/listen() race
Message-ID:  <Pine.BSF.4.05.9811081135410.5670-100000@alive.znep.com>
In-Reply-To: <199811081014.KAA23159@woof.lan.awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 8 Nov 1998, Brian Somers wrote:

> If I create a local domain socket with bind(), there's a period 
> between that and the listen() where a connect() will fail.  Is there 
> any way to circumvent the problem ?

Why is it a problem to have connects fail before you listen() but not a
problem to have them fail before you bind()?

I'm not sure I see the race condition.  Once you listen(), you can accept
connections.  Before you listen(), you can't.  


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9811081135410.5670-100000>