Author: kib Date: Mon Oct 3 16:58:58 2011 New Revision: 225942 URL: http://svn.freebsd.org/changeset/base/225942
Log: Assert that exiting process does not return to usermode. Reviewed by: avg, jhb MFC after: 1 week Modified: head/sys/kern/subr_trap.c Modified: head/sys/kern/subr_trap.c ============================================================================== --- head/sys/kern/subr_trap.c Mon Oct 3 16:30:18 2011 (r225941) +++ head/sys/kern/subr_trap.c Mon Oct 3 16:58:58 2011 (r225942) @@ -99,6 +99,8 @@ userret(struct thread *td, struct trapfr 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. */ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"