public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/incron] epel8: Add patch to prevent zombies from upstream post release commits. Fixes bug #1656939
@ 2026-11-12 2:01 Kevin Fenzi
0 siblings, 0 replies; only message in thread
From: Kevin Fenzi @ 2026-11-12 2:01 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/incron
Branch : epel8
Commit : c7268098dff5dc31d2a50136434d3c0b90fee068
Author : Kevin Fenzi <kevin@scrye.com>
Date : 2019-01-05T11:52:04-08:00
Stats : +17/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/incron/c/c7268098dff5dc31d2a50136434d3c0b90fee068?branch=epel8
Log:
Add patch to prevent zombies from upstream post release commits. Fixes bug #1656939
---
diff --git a/incron-0.5.12-prevent-zombies.patch b/incron-0.5.12-prevent-zombies.patch
new file mode 100644
index 0000000..63766c9
--- /dev/null
+++ b/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/incron.spec b/incron.spec
index db6cf9d..dcd3c1d 100644
--- a/incron.spec
+++ b/incron.spec
@@ -1,7 +1,7 @@
Summary: Inotify cron system
Name: incron
Version: 0.5.12
-Release: 8%{?dist}
+Release: 9%{?dist}
Group: System Environment/Base
License: GPLv2
@@ -9,6 +9,7 @@ URL: https://github.com/ar-/incron
Source0: https://github.com/ar-/%{name}/archive/%{version}.tar.gz
Source1: incrond.service
Patch0: incron-0.5.10-gcc.patch
+Patch1: incron-0.5.12-prevent-zombies.patch
BuildRequires: systemd
BuildRequires: gcc-c++
@@ -27,6 +28,7 @@ filesystem events rather than time periods.
%prep
%setup -q
%patch0 -p1 -b .gcc
+%patch1 -p1
%build
make %{?_smp_mflags} CXXFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
@@ -67,6 +69,9 @@ make install-man MANPATH="%{buildroot}%{_mandir}" INSTALL="install -D -p"
%dir %{_sysconfdir}/%{name}.d
%changelog
+* Sat Jan 05 2019 Kevin Fenzi <kevin@scrye.com> - 0.5.12-9
+- Add patch to prevent zombies from upstream post release commits. Fixes bug #1656939
+
* Tue Jul 17 2018 Kevin Fenzi <kevin@scrye.com> - 0.5.12-8
- Fix FTBFS by adding BuildRequires: gcc-c++
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-12 2:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 2:01 [rpms/incron] epel8: Add patch to prevent zombies from upstream post release commits. Fixes bug #1656939 Kevin Fenzi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox