mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 0 additions and 12 deletions
|
|
@ -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