From 6cf4c8532735bac313b4687b9549d605532b8361 Mon Sep 17 00:00:00 2001 From: jilles Date: Mon, 21 Dec 2009 22:16:07 +0000 Subject: 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 Reviewed by: dougb --- etc/rc.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.subr b/etc/rc.subr index f0a4b58..398f9f9 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 "." -- cgit v1.1