mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
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
This commit is contained in:
parent
922706175e
commit
bd3e243f9f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200818
@ -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 "."
|
||||
|
Loading…
Reference in New Issue
Block a user