Re: uipc_socket2.c sbflush question

From: David Malone <dwmalone_at_maths.tcd.ie>
Date: Thu, 15 Jan 2004 17:32:56 +0000
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.
Received on Thu Jan 15 2004 - 08:33:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:38 UTC