Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/entr entr: Always wait for childs to avoid zo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d05684e38b0f
branches:  trunk
changeset: 434390:d05684e38b0f
user:      leot <leot%pkgsrc.org@localhost>
date:      Mon Jun 15 16:55:07 2020 +0000

description:
entr: Always wait for childs to avoid zombies

PKGREVISION++

diffstat:

 sysutils/entr/Makefile             |   3 ++-
 sysutils/entr/distinfo             |   3 ++-
 sysutils/entr/patches/patch-entr.c |  16 ++++++++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r f7fe3b3b7297 -r d05684e38b0f sysutils/entr/Makefile
--- a/sysutils/entr/Makefile    Mon Jun 15 16:54:38 2020 +0000
+++ b/sysutils/entr/Makefile    Mon Jun 15 16:55:07 2020 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2020/06/13 22:04:35 leot Exp $
+# $NetBSD: Makefile,v 1.16 2020/06/15 16:55:07 leot Exp $
 #
 
 DISTNAME=      entr-4.5
+PKGREVISION=   1
 CATEGORIES=    sysutils
 MASTER_SITES=  http://eradman.com/entrproject/code/
 
diff -r f7fe3b3b7297 -r d05684e38b0f sysutils/entr/distinfo
--- a/sysutils/entr/distinfo    Mon Jun 15 16:54:38 2020 +0000
+++ b/sysutils/entr/distinfo    Mon Jun 15 16:55:07 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.13 2020/06/13 22:04:35 leot Exp $
+$NetBSD: distinfo,v 1.14 2020/06/15 16:55:07 leot Exp $
 
 SHA1 (entr-4.5.tar.gz) = a706c15f7be76e94c7504242cf488280af4bb0e2
 RMD160 (entr-4.5.tar.gz) = 6e2c0f4828e2dc306185fc173658ba6ec44af468
 SHA512 (entr-4.5.tar.gz) = db9499d78385df5056a30a4e3262fb436090acc5410ddfc529a7cfe4e10e304e13787abfc31dd38dbf8b9f01fa3369ef32d20c9fb903fa35763f41791bdda9c7
 Size (entr-4.5.tar.gz) = 24674 bytes
+SHA1 (patch-entr.c) = 129df6c40e9aec79abfdfc1707be5ff23068be58
diff -r f7fe3b3b7297 -r d05684e38b0f sysutils/entr/patches/patch-entr.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/entr/patches/patch-entr.c        Mon Jun 15 16:55:07 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-entr.c,v 1.1 2020/06/15 16:55:07 leot Exp $
+
+Always wait childs to avoid zombies.
+
+--- entr.c.orig        2020-04-20 16:02:05.000000000 +0000
++++ entr.c
+@@ -254,8 +254,8 @@ void
+ proc_exit(int sig) {
+       int status;
+ 
++      xwaitpid(child_pid, &status, 0);
+       if ((oneshot_opt == 1) && (terminating == 0)) {
+-              xwaitpid(child_pid, &status, 0);
+               if ((shell_opt == 1) && (restart_opt == 0)) {
+                       fprintf(stdout, "%s returned exit code %d\n",
+                           basename(getenv("SHELL")), WEXITSTATUS(status));



Home | Main Index | Thread Index | Old Index