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;