We must hold the lwp we are trying to kill to prevent it from being
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 21 Mar 2008 19:42:41 +0000 (19:42 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 21 Mar 2008 19:42:41 +0000 (19:42 +0000)
commit89d9d449346713d9e7185f008abfdf26c55730bd
tree6e77c38adc426f9123bb8a03b732f4f5a19518ca
parentf7bd8e34849edd68e3eddf923aabe1598f80e358
We must hold the lwp we are trying to kill to prevent it from being
ripped out from under our loop due to lwpsignal() potentially blocking.

This fixes a crash which can occur when killing a multi-threaded program.
sys/kern/kern_exit.c