You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch

16 lines
374 B

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. */