Be clear that RUSAGE_CHILDREN only works for terminated children that have
authorclaudio <claudio@openbsd.org>
Wed, 17 Jul 2024 13:29:05 +0000 (13:29 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 17 Jul 2024 13:29:05 +0000 (13:29 +0000)
commitf326d80655d10c29fbfb04dbfeb05fba84298739
tree6c2bdfab2017e3f57792690299321e24e134291a
parenta6d690cc6287a6c881aaae208a86a3a2fa0155d6
Be clear that RUSAGE_CHILDREN only works for terminated children that have
been waited for. If you SIG_IGN SIGCHLD or don't call any of the wait
functions then RUSAGE_CHILDREN wont report anything.
OK deraadt@ millert@
lib/libc/sys/getrusage.2