Date: Fri, 15 Jun 2012 05:57:40 +0000 (UTC) From: Doug Barton <dougb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r237111 - user/dougb/portmaster Message-ID: <201206150557.q5F5vevB046551@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dougb Date: Fri Jun 15 05:57:40 2012 New Revision: 237111 URL: http://svn.freebsd.org/changeset/base/237111 Log: pgrep is unsafe to use in older versions of FreeBSD Modified: user/dougb/portmaster/portmaster Modified: user/dougb/portmaster/portmaster ============================================================================== --- user/dougb/portmaster/portmaster Fri Jun 15 03:57:16 2012 (r237110) +++ user/dougb/portmaster/portmaster Fri Jun 15 05:57:40 2012 (r237111) @@ -168,7 +168,7 @@ parent_exit () { if [ -n "$PM_WRKDIRPREFIX" -a -z "$1" ]; then pm_v ; count=0 while : ; do - pgrep -qf 'make clean NOCLEANDEPENDS=ncd' || break + ps axww | grep '[m]ake clean NOCLEANDEPENDS=ncd' >/dev/null || break count=$(( $count + 1 )) if [ $count -eq 1 ]; then echo "===>>> Waiting for background 'make clean' processes to finish"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206150557.q5F5vevB046551>