diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-01-28 23:53:58 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-01-28 23:53:58 +0000 |
commit | 309d6b50c369bf00a86081d7eaee15170addf019 (patch) | |
tree | 0da21fab04e0096b8ddd984bea6d795976eaa4a3 /sbin | |
parent | 788cd70f51830f3724d4f12119f27f5d8a79a95f (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