HomeFreeBSD

wait: avoid relocking the child if proc_to_reap returns 1

Description

wait: avoid relocking the child if proc_to_reap returns 1

proc_to_reap would always unlock. However, if it returned 1, kern_wait6
would immediately lock it again. Save the dance.

Reviewed by: kib

Details

Provenance
mjgAuthored on
Reviewer
kib
Parents
rS309110: GC some now unused functions and macros.
Branches
Unknown
Tags
Unknown