Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_exec.c
Show First 20 Lines • Show All 739 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) | |||||
p->p_flag2 &= ~P2_STKGAP_DISABLE; | |||||
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); | ||||
} | } | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 1,067 Lines • Show Last 20 Lines |