HomeFreeBSD

daemon(8): handle case of waitpid() returning without exited child

Description

daemon(8): handle case of waitpid() returning without exited child

Not checking for either WIFEXITED(status) or zero result results in
never finishing the loop.

PR: 277764
Reviewed by: kevans (previous version)
Discussed with: Daniel Tameling
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D44401

Details

Provenance
kibAuthored on Mar 18 2024, 8:44 AM
Reviewer
kevans
Differential Revision
D44401: daemon(8): handle case of waitpid() returning without exited child
Parents
rGe07d37c7056a: sysent: regen
Branches
Unknown
Tags
Unknown