From d30412a8dba9fb24fcae2e9270add74dd627fd64 Mon Sep 17 00:00:00 2001 From: David Xu Date: Mon, 23 Aug 2004 22:54:37 +0000 Subject: [PATCH] Remove checking of single exit flag in thread_user_enter(), this is generic code for threaded process, should not be here. --- sys/kern/kern_kse.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 26e5178c034..e01da29f02e 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -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;