summaryrefslogtreecommitdiff
path: root/usr.bin/patch
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-05-30 06:42:14 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-05-30 06:42:14 +0000
commitf841d5fa9002f9335cc6dcebbabc605a54538512 (patch)
tree73b0a19af72a98a6ab89c3d11ef2fac61b3175e7 /usr.bin/patch
parent024403aa7c5fc50c1a0404469c388fe313c79bfc (diff)
Clear the internal table used by if_get(9) and sleep until all
remaining ifp references are released *without* the NET_LOCK(). It's safe to do so because the KERNEL_LOCK() serializes accesses to ``if_map''. More importantly this fix possible deadlocks between if_get() and the NET_LOCK(). It is now possible to call them in whatever order. ok visa@, dlg@
Diffstat (limited to 'usr.bin/patch')
0 files changed, 0 insertions, 0 deletions