]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
waitproc: i not used
authorElan Ruusamäe <glen@delfi.ee>
Thu, 2 Jul 2015 21:01:45 +0000 (00:01 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 2 Jul 2015 21:01:45 +0000 (00:01 +0300)
lib/functions

index ec8a139dbacad3ffb59b9822be01ec7e6ef3c392..bbdbd64cfea3a8716080d2b8fe44e16692f206d7 100644 (file)
@@ -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
 }
 
This page took 0.098238 seconds and 4 git commands to generate.