knote_processexit() needs the thread to pass down to FRELE(), so pass it
authorguenther <guenther@openbsd.org>
Thu, 15 May 2014 04:43:25 +0000 (04:43 +0000)
committerguenther <guenther@openbsd.org>
Thu, 15 May 2014 04:43:25 +0000 (04:43 +0000)
commit67330adf71d698fcd3519ee44d012fbf72268b9a
tree8c9519246847176edcfe48b28ff8a723aca953fa
parentf7abb9c9bb21029485fc94a1873414a3ffe71a32
knote_processexit() needs the thread to pass down to FRELE(), so pass it
the exiting thread instead of assuming that that's ps_mainproc.
Also, panic no matter which thread of init takes it down.

ok tedu@
sys/kern/kern_event.c
sys/kern/kern_exit.c
sys/sys/event.h