[projects/rc-scripts] waitproc: i not used
glen
glen at pld-linux.org
Thu Jul 2 23:02:06 CEST 2015
commit 15fbc41add715c29b9046bee28ac119ee6a09875
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Jul 3 00:01:45 2015 +0300
waitproc: i not used
lib/functions | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/lib/functions b/lib/functions
index ec8a139..bbdbd64 100644
--- a/lib/functions
+++ b/lib/functions
@@ -802,7 +802,7 @@ daemon() {
# example: waitproc 30 httpd /var/run/httpd.pid
waitproc() {
local waittime=$1 procname=$2 pidfile=$3
- local i=0 pid
+ local pid
local now=$(date +%s)
local maxtime=$(($now + $waittime))
@@ -817,7 +817,6 @@ waitproc() {
# start-stop-daemon uses same delay
usleep 20000
- i=$(( i + 1 ))
done
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/15fbc41add715c29b9046bee28ac119ee6a09875
More information about the pld-cvs-commit
mailing list