Remove checking of single exit flag in thread_user_enter(), this is

generic code for threaded process, should not be here.
This commit is contained in:
David Xu 2004-08-23 22:54:37 +00:00
parent f1009e1e1f
commit d30412a8db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134228

View file

@ -1151,18 +1151,6 @@ thread_user_enter(struct proc *p, struct thread *td)
struct kse_thr_mailbox *tmbx;
uint32_t flags;
/*
* First check that we shouldn't just abort.
* But check if we are the single thread first!
*/
if (__predict_false(p->p_flag & P_SINGLE_EXIT)) {
PROC_LOCK(p);
mtx_lock_spin(&sched_lock);
thread_stopped(p);
thread_exit();
/* NOTREACHED */
}
if (!(td->td_pflags & TDP_SA))
return;