diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-11-01 14:28:45 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-11-01 14:30:41 +0100 |
commit | 0bd41cba1a78ddf8f72cddc139b2aff0bd7960b3 (patch) | |
tree | dd4ac7d9034909efe7b33b3e950c5e1da60bce49 /app-misc | |
parent | dev-db/phpmyadmin: Add 4.7.5 release, bug #634146. (diff) | |
download | gentoo-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')
-rw-r--r-- | app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch | 15 | ||||
-rw-r--r-- | app-misc/fsniper/fsniper-1.3.1-r2.ebuild | 1 |
2 files changed, 16 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. */ diff --git a/app-misc/fsniper/fsniper-1.3.1-r2.ebuild b/app-misc/fsniper/fsniper-1.3.1-r2.ebuild index 55bfb55850f4..7b845d7f9bf8 100644 --- a/app-misc/fsniper/fsniper-1.3.1-r2.ebuild +++ b/app-misc/fsniper/fsniper-1.3.1-r2.ebuild @@ -23,6 +23,7 @@ RDEPEND=" PATCHES=( "${FILESDIR}"/${P}-format-security.patch "${FILESDIR}"/${P}-umask.patch + "${FILESDIR}"/${P}-waitpid.patch ) DOCS=( AUTHORS COPYING NEWS README example.conf ) |