Fix a lock leak in childproc_continued().

This commit is contained in:
David Xu 2005-12-06 05:30:13 +00:00
parent 0ce3dc049a
commit 027f760408

View File

@ -2888,8 +2888,10 @@ childproc_continued(struct proc *p)
p->p_ksi->ksi_status = SIGCONT;
p->p_ksi->ksi_pid = p->p_pid;
p->p_ksi->ksi_uid = p->p_ucred->cr_ruid;
if (KSI_ONQ(p->p_ksi))
if (KSI_ONQ(p->p_ksi)) {
PROC_UNLOCK(p->p_pptr);
return;
}
}
tdsignal(p->p_pptr, NULL, SIGCHLD, p->p_ksi);
PROC_UNLOCK(p->p_pptr);