From 196a77dbd38d11f22cd9960d943d572da3a5a843 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 9 Jul 2001 05:50:12 +0000 Subject: it helps if you name the variable the same thing as what you're checking --- rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index a4ac7719..ee2704c4 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -116,7 +116,7 @@ daemon() { [ -z $gotbase ] && base=${1##*/} # See if it's already running. Look *only* at the pid file. - pidlist=`pidfileofproc $base` + pid=`pidfileofproc $base` [ -n "$pid" ] && return -- cgit v1.2.1