Add code to report zombie state.

PR: threads/91044
MFC after: 3 days
This commit is contained in:
David Xu 2005-12-29 13:00:42 +00:00
parent 408b85a1e2
commit 3357835a46

View File

@ -789,6 +789,8 @@ fill_kinfo_thread(struct thread *td, struct kinfo_proc *kp)
} else {
kp->ki_stat = SWAIT;
}
} else if (p->p_state == PRS_ZOMBIE) {
kp->ki_stat = SZOMB;
} else {
kp->ki_stat = SIDL;
}