]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
r334853 added a "socket destructor" callback. However, as implemented, it
authorJonathan T. Looney <jtl@FreeBSD.org>
Thu, 18 Oct 2018 14:20:15 +0000 (14:20 +0000)
committerJonathan T. Looney <jtl@FreeBSD.org>
Thu, 18 Oct 2018 14:20:15 +0000 (14:20 +0000)
commite77f0bdcb53d3e7b47a5e858affbad3ce85bded7
treefb2487f40b91294bc1d61aa8e4fe2ceecdc9ff5f
parentc35b07d1cb586b8bb2d7a6548f0a5b1986802291
r334853 added a "socket destructor" callback. However, as implemented, it
was really a "socket close" callback.

Update the socket destructor functionality to run when a socket is
destroyed (rather than when it is closed). The original submitter has
confirmed that this change satisfies the intended use case.

Suggested by: rwatson
Submitted by: Michio Honda <micchie at sfc.wide.ad.jp>
Tested by: Michio Honda <micchie at sfc.wide.ad.jp>
Approved by: re (kib)
Differential Revision: https://reviews.freebsd.org/D17590
share/man/man9/socket.9
sys/kern/uipc_socket.c