Try not to crash instantly when signalling a libthr program to death.

This commit is contained in:
Doug Rabson 2004-04-05 15:06:01 +00:00
parent 8aca967c58
commit 7d5ea13fcd

View File

@ -556,7 +556,7 @@ sched_exit_ksegrp(struct ksegrp *kg, struct ksegrp *child)
void
sched_exit_thread(struct thread *td, struct thread *child)
{
if ((td->td_proc->p_flag & P_NOLOAD) == 0)
if ((child->td_proc->p_flag & P_NOLOAD) == 0)
sched_tdcnt--;
}