commit 15fbc41add715c29b9046bee28ac119ee6a09875
Author: Elan Ruusamäe <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to