]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
daemon(8): handle case of waitpid() returning without exited child
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 18 Mar 2024 08:44:39 +0000 (10:44 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 20 Mar 2024 01:07:00 +0000 (03:07 +0200)
commit8eaa6be80d6aef6a118fa854a860bfdaeb7ed753
tree713e76b78d9fdd2d65365882a30c2d7abf77e05c
parente07d37c7056a549ce1ed5dd0dfdbeadfe1b82605
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
usr.sbin/daemon/daemon.c