Subject: Re: missing soclose() on sys_accept failure
To: Charles M. Hannum <root@ihack.net>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-net
Date: 02/21/2001 08:10:02
On Tue, Feb 20, 2001 at 11:50:10PM -0800, Charles M. Hannum wrote:

 > Shouldn't the FILE_UNUSE() also be moved down?  You don't want another
 > thread trying to use the socket while it's still being accepted.

FILE_UNUSE() prevents closef() from yanking the file out from under
you while you're still using it.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>