diff --git a/etc/rc.subr b/etc/rc.subr index f0a4b58eeb1a..398f9f97fb8d 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 "."