Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc sleep for 0.05 seconds instead of 2 seconds when checkin...
details: https://anonhg.NetBSD.org/src/rev/ba3551a4a061
branches: trunk
changeset: 332749:ba3551a4a061
user: roy <roy%NetBSD.org@localhost>
date: Tue Oct 07 19:09:45 2014 +0000
description:
sleep for 0.05 seconds instead of 2 seconds when checking if the pids
are still alive for a much faster exit.
diffstat:
etc/rc.subr | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (27 lines):
diff -r c6d5dc0e9d4d -r ba3551a4a061 etc/rc.subr
--- a/etc/rc.subr Tue Oct 07 16:53:44 2014 +0000
+++ b/etc/rc.subr Tue Oct 07 19:09:45 2014 +0000
@@ -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 @@
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 "."
Home |
Main Index |
Thread Index |
Old Index