pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk Fixed the creating of numerous zombie processe...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e2fa75ec77e6
branches:  trunk
changeset: 522490:e2fa75ec77e6
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Dec 10 13:59:31 2006 +0000

description:
Fixed the creating of numerous zombie processes, which is a bug in the
NetBSD /bin/sh, reported in PR 35227.

diffstat:

 mk/bulk/printindex |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r c8811bf1efe1 -r e2fa75ec77e6 mk/bulk/printindex
--- a/mk/bulk/printindex        Sun Dec 10 13:06:45 2006 +0000
+++ b/mk/bulk/printindex        Sun Dec 10 13:59:31 2006 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: printindex,v 1.29 2006/11/26 08:39:52 rillig Exp $
+# $NetBSD: printindex,v 1.30 2006/12/10 13:59:31 rillig Exp $
 #
 
 # Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -161,6 +161,13 @@
        esac
 
        if cd "${pkgsrcdir}/${pkgdir}"; then
+
+               # The NetBSD /bin/sh creates lots of zombies for the backticks
+               # line below, and it doesn't clean them up until a real
+               # command is executed. (See PR 35227)
+               #
+               cat </dev/null
+
                if output=`${BMAKE} show-var VARNAME=PKGNAME can-be-built-here`; then
                        reasons=""
                        {



Home | Main Index | Thread Index | Old Index