public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kevin Fenzi <kevin@scrye.com>
To: git-commits@fedoraproject.org
Subject: [rpms/incron] epel8: Add patch to prevent zombies from upstream post release commits. Fixes bug #1656939
Date: Thu, 12 Nov 2026 02:01:48 GMT [thread overview]
Message-ID: <179444890889.1.10894231145461711626.rpms-incron-c7268098dff5@fedoraproject.org> (raw)
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++
reply other threads:[~2026-11-12 2:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179444890889.1.10894231145461711626.rpms-incron-c7268098dff5@fedoraproject.org \
--to=kevin@scrye.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox