uipc: Consolidate unp_drop()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 5 Nov 2015 01:43:28 +0000 (09:43 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 5 Nov 2015 01:43:28 +0000 (09:43 +0800)
commit8754d0c668ce26cd4c3240ddda3388b7a3dc4c4f
treeac9eb5235749322b80ff1232f0107d6a1e0d4f4c
parent81a223edaa6733e55ebcaefe2fe07e1c71e258d0
uipc: Consolidate unp_drop()

And unlink unp from the global unp list in unp_drop(); this is intended
to address following problems:
- Detached unps are listed by netstat/sockstat.
- Unp can not be referenced during unp global list iteration.
sys/kern/uipc_usrreq.c