summaryrefslogtreecommitdiffstats
path: root/etc/rc.subr
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-03-28 20:19:41 +0000
committerjilles <jilles@FreeBSD.org>2010-03-28 20:19:41 +0000
commit550d4d3f518403c3061fadcd3215efd16c55fb99 (patch)
tree1ba2de63e7ce294a3dbe4c6e250846ee873c9b2a /etc/rc.subr
parent4968c96712b2353e806ee4faaea44d73e2ce1f83 (diff)
downloadFreeBSD-src-550d4d3f518403c3061fadcd3215efd16c55fb99.zip
FreeBSD-src-550d4d3f518403c3061fadcd3215efd16c55fb99.tar.gz
MFC r200818: rc.subr: Use pwait in wait_for_pids.
This waits for the requested process(es) to terminate, rather than polling with an interval of 2 seconds. If pwait is not available, the old method is used. PR: conf/132766
Diffstat (limited to 'etc/rc.subr')
-rw-r--r--etc/rc.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index cfb2942..091ac3f 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -390,7 +390,7 @@ wait_for_pids()
_list=$_nlist
echo -n ${_prefix:-"Waiting for PIDS: "}$_list
_prefix=", "
- sleep 2
+ pwait $_list 2>/dev/null || sleep 2
done
if [ -n "$_prefix" ]; then
echo "."
OpenPOWER on IntegriCloud