summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2017-11-01 14:28:45 +0100
committerPatrice Clement <monsieurp@gentoo.org>2017-11-01 14:30:41 +0100
commit0bd41cba1a78ddf8f72cddc139b2aff0bd7960b3 (patch)
treedd4ac7d9034909efe7b33b3e950c5e1da60bce49 /app-misc/fsniper/files
parentdev-db/phpmyadmin: Add 4.7.5 release, bug #634146. (diff)
downloadgentoo-0bd41cba1a78ddf8f72cddc139b2aff0bd7960b3.tar.gz
gentoo-0bd41cba1a78ddf8f72cddc139b2aff0bd7960b3.tar.bz2
gentoo-0bd41cba1a78ddf8f72cddc139b2aff0bd7960b3.zip
app-misc/fsniper: patch against obsolete C call.
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
Diffstat (limited to 'app-misc/fsniper/files')
-rw-r--r--app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch b/app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch
new file mode 100644
index 000000000000..1363c4cbf73f
--- /dev/null
+++ b/app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch
@@ -0,0 +1,15 @@
+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. */