More cleanup of the main function. Use a loop to collect all childs with
authorclaudio <claudio@openbsd.org>
Thu, 8 Apr 2021 16:32:42 +0000 (16:32 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 8 Apr 2021 16:32:42 +0000 (16:32 +0000)
commitc89f29692a2442b8ef9b654f4de37fd1c9d892d4
tree6bd576e5672e0301ed2404d7b19b35bd9f2e6d7e
parent11300a775e900cb0c29c7306ff030665607cf9bd
More cleanup of the main function. Use a loop to collect all childs with
waitpid() and print if they exited non-zero or by a signal. Also adjust
the poll hangup case to exit the poll loop instead of erroring out. This
way a crashed child should be reported before exit.
OK job@ tb@
usr.sbin/rpki-client/main.c