Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/sys_procdesc.c
Show First 20 Lines • Show All 410 Lines • ▼ Show 20 Lines | if (p->p_state == PRS_ZOMBIE) { | ||||
procdesc_free(pd); | procdesc_free(pd); | ||||
/* | /* | ||||
* Next, reparent it to its reaper (usually init(8)) so | * Next, reparent it to its reaper (usually init(8)) so | ||||
* that there's someone to pick up the pieces; finally, | * that there's someone to pick up the pieces; finally, | ||||
* terminate with prejudice. | * terminate with prejudice. | ||||
*/ | */ | ||||
p->p_sigparent = SIGCHLD; | p->p_sigparent = SIGCHLD; | ||||
proc_reparent(p, p->p_reaper); | proc_reparent(p, p->p_reaper, true); | ||||
if ((pd->pd_flags & PDF_DAEMON) == 0) | if ((pd->pd_flags & PDF_DAEMON) == 0) | ||||
kern_psignal(p, SIGKILL); | kern_psignal(p, SIGKILL); | ||||
PROC_UNLOCK(p); | PROC_UNLOCK(p); | ||||
sx_xunlock(&proctree_lock); | sx_xunlock(&proctree_lock); | ||||
} | } | ||||
} | } | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |