Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2004 17:32:56 +0000
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Andre Oppermann <andre@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: uipc_socket2.c sbflush question
Message-ID:  <20040115173256.GA31297@walton.maths.tcd.ie>
In-Reply-To: <4006BC29.7CAE053B@freebsd.org>
References:  <4006BC29.7CAE053B@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 15, 2004 at 05:13:29PM +0100, Andre Oppermann wrote:
> Why is sbdrop() called directly instead of sbflush()?  I think it makes
> more sense to change that to a call to sbflush() which then DTRT?

If I remember correctly, it was to deal with the fact that
soisdisconnected is sometimes called without the socket being locked,
but sbflush required the socket to have SB_LOCK set.

(You used to get a panic fairly quickly if you did s/sbdrop/sbflush/)

	David.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040115173256.GA31297>