Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_exit.c
Show First 20 Lines • Show All 1,332 Lines • ▼ Show 20 Lines | loop_locked: | ||||
} | } | ||||
PROC_LOCK(q); | PROC_LOCK(q); | ||||
if (q->p_flag & P_STATCHILD) { | if (q->p_flag & P_STATCHILD) { | ||||
q->p_flag &= ~P_STATCHILD; | q->p_flag &= ~P_STATCHILD; | ||||
PROC_UNLOCK(q); | PROC_UNLOCK(q); | ||||
goto loop_locked; | goto loop_locked; | ||||
} | } | ||||
sx_xunlock(&proctree_lock); | sx_xunlock(&proctree_lock); | ||||
error = msleep(q, &q->p_mtx, PWAIT | PCATCH | PDROP, "wait", 0); | error = msleep(q, &q->p_mtx, PWAIT | PCATCH | PDROP | PUSERW, | ||||
"wait", 0); | |||||
if (error) | if (error) | ||||
return (error); | return (error); | ||||
goto loop; | goto loop; | ||||
} | } | ||||
void | void | ||||
proc_add_orphan(struct proc *child, struct proc *parent) | proc_add_orphan(struct proc *child, struct proc *parent) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |