summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-01-28 23:53:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-01-28 23:53:58 +0000
commit309d6b50c369bf00a86081d7eaee15170addf019 (patch)
tree0da21fab04e0096b8ddd984bea6d795976eaa4a3 /sbin
parent788cd70f51830f3724d4f12119f27f5d8a79a95f (diff)
Don't rely on vp->v_usecount to tell when we can dispose of our resources
in fifo_close(). If the FIFO is accessed via a layed fs (e.g. nullfs), v_usecount will always be 1. Instead, just check fip->if_readers and fip->fi_writers. If either one is non-zero we know the FIFO is in use and we should not free up its resources. Adapted from FreeBSD, NetBSD has an equivalent change (but they keep a counter instead).
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions