A threaded process going into SZOMB may still have active threads which are
commit1fd79cc630966d071cbf2fef41a0cf2eb2843ae5
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 20 Mar 2008 03:59:10 +0000 (20 03:59 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 20 Mar 2008 03:59:10 +0000 (20 03:59 +0000)
treec183f404ef7b56526098af5d6e25c69444cb7f8d
parent89c87cd571d8e5460dc70ac723af5ac40ffdaf26
A threaded process going into SZOMB may still have active threads which are
in the midst of exiting.  Wait for those threads to exit before trying to
reap the master thread.

This fixes a crash where kern_wait() improperly reaps threads other then the
master thread.
sys/kern/kern_exit.c