P_INEXEC
KASSERT((p->p_flag & P_INEXEC) == 0,
if (p->p_state != PRS_NORMAL || (p->p_flag & (P_INEXEC |
p->p_flag &= ~(P_INEXEC | P_INEXEC_WAIT);
MPASS(p != td->td_proc || (p->p_flag & P_INEXEC) == 0);
if (p != td->td_proc && (p->p_flag & P_INEXEC) != 0) {
KASSERT((p->p_flag & P_INEXEC) == 0,
p->p_flag |= P_INEXEC;
p->p_flag &= ~(P_INEXEC | P_INEXEC_WAIT);
if ((p->p_flag & P_INEXEC) != 0) {
if ((flags & PGET_NOTINEXEC) != 0 && (p->p_flag & P_INEXEC) != 0) {
if ((p->p_flag & P_INEXEC) != 0)
(td != curthread || (p->p_flag & P_INEXEC) == 0)) {
if (p->p_state != PRS_NORMAL || (p->p_flag & (P_INEXEC |
p->p_flag & (P_INEXEC | P_SYSTEM | P_WEXIT)) {