Changeset View
Changeset View
Standalone View
Standalone View
kern/kern_fork_28515.c
| Show First 20 Lines • Show All 682 Lines • ▼ Show 20 Lines | #endif | ||||
| */ | */ | ||||
| PROC_LOCK(p2); | PROC_LOCK(p2); | ||||
| PROC_LOCK(p1); | PROC_LOCK(p1); | ||||
| microuptime(&p2->p_stats->p_start); | microuptime(&p2->p_stats->p_start); | ||||
| PROC_SLOCK(p2); | PROC_SLOCK(p2); | ||||
| p2->p_state = PRS_NORMAL; | p2->p_state = PRS_NORMAL; | ||||
| PROC_SUNLOCK(p2); | PROC_SUNLOCK(p2); | ||||
| /* | |||||
| * If the prison was killed while the process was new, die along | |||||
| * with it. | |||||
| */ | |||||
| if (!prison_isalive(p2->p_ucred->cr_prison)) | |||||
| kern_psignal(p2, SIGKILL); | |||||
| #ifdef KDTRACE_HOOKS | #ifdef KDTRACE_HOOKS | ||||
| /* | /* | ||||
| * Tell the DTrace fasttrap provider about the new process so that any | * Tell the DTrace fasttrap provider about the new process so that any | ||||
| * tracepoints inherited from the parent can be removed. We have to do | * tracepoints inherited from the parent can be removed. We have to do | ||||
| * this only after p_state is PRS_NORMAL since the fasttrap module will | * this only after p_state is PRS_NORMAL since the fasttrap module will | ||||
| * use pfind() later on. | * use pfind() later on. | ||||
| */ | */ | ||||
| if ((fr->fr_flags & RFMEM) == 0 && dtrace_fasttrap_fork) | if ((fr->fr_flags & RFMEM) == 0 && dtrace_fasttrap_fork) | ||||
| ▲ Show 20 Lines • Show All 437 Lines • Show Last 20 Lines | |||||