Package: incron
Version: 0.5.12-1
Severity: important
Tags: patch
Dear Maintainer,
After updating two machines from current stable to buster I've got a lot
of zombie processes caused by incron.
It looks like this known issue and was already fixed:
https://bugzilla.redhat.com/show_bug.cgi?id=1656939
I'm attaching copy of patch from Fedora package that fixes this issue for
me.
It would be cool to have this applied to Buster release
-- System Information:
Debian Release: 10.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1,
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.1.9 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages incron depends on:
ii adduser 3.118
ii init-system-helpers 1.56+nmu1
ii libc6 2.28-10
ii libgcc1 1:8.3.0-7
ii libstdc++6 8.3.0-7
ii lsb-base 10.2019051400
incron recommends no packages.
incron suggests no packages.
-- Configuration Files:
/etc/incron.allow [Errno 13] Permission denied: '/etc/incron.allow'
/etc/incron.deny [Errno 13] Permission denied: '/etc/incron.deny'
-- no debconf information
--
WBR, Dmitry
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);