Assert that exiting process does not return to usermode.

Reviewed by:	avg, jhb
MFC after:	1 week
This commit is contained in:
kib 2011-10-03 16:58:58 +00:00
parent d02d847434
commit b0ea63c19a

View File

@ -99,6 +99,8 @@ userret(struct thread *td, struct trapframe *frame)
CTR3(KTR_SYSC, "userret: thread %p (pid %d, %s)", td, p->p_pid,
td->td_name);
KASSERT((p->p_flag & P_WEXIT) == 0,
("Exiting process returns to usermode"));
#if 0
#ifdef DIAGNOSTIC
/* Check that we called signotify() enough. */