Kernel - Fix NOTE_EXIT.
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 22 Sep 2009 04:57:32 +0000 (21:57 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 22 Sep 2009 04:57:32 +0000 (21:57 -0700)
commit8fb579883e72e1f3c68200f42267d50cf03c6842
treeb8dcfefd093734880593cf276712d7c0940b13f2
parent9a7005f262931bf3c96a51fcd315254caace824b
Kernel - Fix NOTE_EXIT.

* NOTE_EXIT could crash the machine due to a knote being left on a
  process list and then zfree()'d.

Loosely-taken-from: FreeBSD
sys/kern/kern_event.c