Module Name: src
Committed By: roy
Date: Tue Oct 7 19:09:45 UTC 2014
Modified Files:
src/etc: rc.subr
Log Message:
sleep for 0.05 seconds instead of 2 seconds when checking if the pids
are still alive for a much faster exit.
To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/etc/rc.subr
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc.subr
diff -u src/etc/rc.subr:1.95 src/etc/rc.subr:1.96
--- src/etc/rc.subr:1.95 Sun Sep 21 09:47:24 2014
+++ src/etc/rc.subr Tue Oct 7 19:09:45 2014
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.95 2014/09/21 09:47:24 roy Exp $
+# $NetBSD: rc.subr,v 1.96 2014/10/07 19:09:45 roy Exp $
#
# Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -322,10 +322,13 @@ wait_for_pids()
if [ -z "$_nlist" ]; then
break
fi
- _list=$_nlist
- echo -n ${_prefix:-"Waiting for PIDS: "}$_list
- _prefix=", "
- sleep 2
+ if [ "$_list" != "$_nlist" ]; then
+ _list=$_nlist
+ echo -n ${_prefix:-"Waiting for PIDS: "}$_list
+ _prefix=", "
+ fi
+ # We want this to be a tight loop for a fast exit
+ sleep 0.05
done
if [ -n "$_prefix" ]; then
echo "."