frevoke - More fixes to fdfree()
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 3 Jul 2009 17:48:26 +0000 (10:48 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 3 Jul 2009 17:48:26 +0000 (10:48 -0700)
commit464e801e77f8e4207ef040861cd7561c47e4f913
tree6840a9aab3e80e2dfac350079646212b9950b616
parent2e3c6acd6c27fdf9b88179f8156cdb25fc504c4c
frevoke - More fixes to fdfree()

* Don't replace p->p_fd until after all closef()'s have been called.  Fixed
  panic in kqueue's close function.

* Move softrefs check to after the closef point, but before we actually
  start kfree()ing the structures.  Lock the closef's normally since
  p->p_fd is still valid.
sys/kern/kern_descrip.c