Potential fix for panic during shutdown.
authorNicolas Thery <nthery@gmail.com>
Sat, 21 Feb 2009 12:05:27 +0000 (13:05 +0100)
committerNicolas Thery <nthery@gmail.com>
Sat, 21 Feb 2009 18:05:04 +0000 (19:05 +0100)
commit8e0ede57151dfffe3d785fc1f3c1e8bcf2c848dc
treed123c7ec65f1cb962d06be55be78ee209afff0fb
parent1037af13eb06d2409fbc24ca9694f20687b36bb5
Potential fix for panic during shutdown.

When a tty is revoked, the opencount of its associated vnode is forced to
zero and calling vop_stdclose() on this vnode causes a panic.  Call therefore
vop_stdclose() from spec_close() if and only if the opencount is strictly
positive.

I haven't managed to reproduce the original panic locally, hence the
"potential" above.

Reported-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue715>
sys/vfs/specfs/spec_vnops.c