mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 14:54:24 +00:00
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:
parent
f1009e1e1f
commit
d30412a8db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134228
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue