]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netlink: simplify socket destruction
authorGleb Smirnoff <glebius@FreeBSD.org>
Wed, 27 Dec 2023 04:22:12 +0000 (20:22 -0800)
committerGleb Smirnoff <glebius@FreeBSD.org>
Wed, 27 Dec 2023 04:22:12 +0000 (20:22 -0800)
commit97958f5d5c674de5d05a6b547cb1c45f8c58791b
tree4791744d20a227e69f4112f09c11a23da3c84f66
parentf27aff8f7f4f7628a652602e55409f7e858d7f56
netlink: simplify socket destruction

Destroy the socket at the file descriptor close(2).  There is no
reason to linger for any longer, there are no external references.
Remove pr_detach method as nothing left to do after pr_close.
Remove pr_abort method as it shall never be executed for this type
of socket.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D42521
sys/netlink/netlink_domain.c