This patch removes a wait3() call in favour of waitpid() in src/main.c.
Closes: https://bugs.gentoo.org/634366
Package-Manager: Portage-2.3.8, Repoman-2.3.3
--- /dev/null
+Replace obsolete wait3 by waitpid
+
+--- a/src/main.c
++++ b/src/main.c
+@@ -193,8 +193,8 @@
+ /* handler for reaping children after the fork is done. */
+ void handle_child_signal()
+ {
+- union wait status;
+- while (wait3(&status, WNOHANG, 0) > 0) {}
++ int status;
++ while (waitpid(-1, &status, WNOHANG) > 0) {}
+ }
+
+ /* handler for HUP. reloads the config file. */
PATCHES=(
"${FILESDIR}"/${P}-format-security.patch
"${FILESDIR}"/${P}-umask.patch
+ "${FILESDIR}"/${P}-waitpid.patch
)
DOCS=( AUTHORS COPYING NEWS README example.conf )