uipc_socket2.c sbflush question
David Malone
dwmalone at maths.tcd.ie
Thu Jan 15 09:33:04 PST 2004
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.
More information about the freebsd-current
mailing list