On Mon, Jun 25, 2001 at 08:09:01AM +0200, Dag-Erling Smorgrav wrote:
> Sean Chittenden <[EMAIL PROTECTED]> writes:
> >     Quick question.  Anyone know how gracefully the kernel handles a
> > socket connection that is killed by the client between a select and
> > accept call?  I don't expect any problems, but I know there was a race
> > condition in Linux that caused all kinds of nasty bugs and problems.
> 
> There was one in FreeBSD too.  It's been fixed; accept(2) will return
> -1 and set errno to ECONNABORTED, which you'd know if you'd RTFM.

And even if it is not a problem with FreeBSD the portable way is to set
the listen socket to non-blocking so accept will always return.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
[EMAIL PROTECTED]         Usergroup           [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to