diff --git a/srcpkgs/incron/patches/incron-0.5.12-prevent-zombies.patch b/srcpkgs/incron/patches/incron-0.5.12-prevent-zombies.patch new file mode 100644 index 00000000000..63766c99950 --- /dev/null +++ b/srcpkgs/incron/patches/incron-0.5.12-prevent-zombies.patch @@ -0,0 +1,11 @@ +diff -Nur incron-0.5.12.orig/icd-main.cpp incron-0.5.12/icd-main.cpp +--- incron-0.5.12.orig/icd-main.cpp 2019-01-05 11:43:19.722640603 -0800 ++++ incron-0.5.12/icd-main.cpp 2019-01-05 11:45:41.236340779 -0800 +@@ -105,6 +105,7 @@ + g_fFinish = true; + break; + case SIGCHLD: ++ do {} while (waitpid((pid_t)-1, 0, WNOHANG) > 0); /* Prevent zombies */ + // first empty pipe (to prevent internal buffer overflow) + do {} while (read(g_cldPipe[0], g_cldPipeBuf, CHILD_PIPE_BUF_LEN) > 0); + diff --git a/srcpkgs/incron/template b/srcpkgs/incron/template index 19c08b4befa..cd7e3f34eae 100644 --- a/srcpkgs/incron/template +++ b/srcpkgs/incron/template @@ -1,13 +1,14 @@ # Template file for 'incron' pkgname=incron version=0.5.12 -revision=2 +revision=3 short_desc="Daemon that executes commands due to inotify events" maintainer="allan " license="X11" homepage="https://github.com/ar-/incron" distfiles="https://github.com/ar-/incron/archive/${version}.tar.gz" checksum=cce80bd723bafce59f35464f2f851d02707e32efa102e2b941ed0e42bdd38f91 +patch_args="-Np1" make_dirs="/var/spool/incron 0755 root root /etc/incron.d 0755 root root"