Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_exec.c
| Show First 20 Lines • Show All 790 Lines • ▼ Show 20 Lines | #endif | ||||
| * mark as execed, wakeup the process that vforked (if any) and tell | * mark as execed, wakeup the process that vforked (if any) and tell | ||||
| * it that it now has its own resources back | * it that it now has its own resources back | ||||
| */ | */ | ||||
| p->p_flag |= P_EXEC; | p->p_flag |= P_EXEC; | ||||
| if ((p->p_flag2 & P2_NOTRACE_EXEC) == 0) | if ((p->p_flag2 & P2_NOTRACE_EXEC) == 0) | ||||
| p->p_flag2 &= ~P2_NOTRACE; | p->p_flag2 &= ~P2_NOTRACE; | ||||
| if ((p->p_flag2 & P2_STKGAP_DISABLE_EXEC) == 0) | if ((p->p_flag2 & P2_STKGAP_DISABLE_EXEC) == 0) | ||||
| p->p_flag2 &= ~P2_STKGAP_DISABLE; | p->p_flag2 &= ~P2_STKGAP_DISABLE; | ||||
| p->p_flag2 &= ~(P2_MEMBAR_PRIVE | P2_MEMBAR_PRIVE_SYNCORE | | |||||
| P2_MEMBAR_GLOBE); | |||||
| if (p->p_flag & P_PPWAIT) { | if (p->p_flag & P_PPWAIT) { | ||||
| p->p_flag &= ~(P_PPWAIT | P_PPTRACE); | p->p_flag &= ~(P_PPWAIT | P_PPTRACE); | ||||
| cv_broadcast(&p->p_pwait); | cv_broadcast(&p->p_pwait); | ||||
| /* STOPs are no longer ignored, arrange for AST */ | /* STOPs are no longer ignored, arrange for AST */ | ||||
| signotify(td); | signotify(td); | ||||
| } | } | ||||
| if ((imgp->sysent->sv_setid_allowed != NULL && | if ((imgp->sysent->sv_setid_allowed != NULL && | ||||
| ▲ Show 20 Lines • Show All 1,191 Lines • Show Last 20 Lines | |||||