aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-xrc.d/init.d/functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 29661799..a7c8fcab 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -183,8 +183,8 @@ killproc() {
done
fi
if [ -z "$pid" ]; then
- pid=`pidof -o $$ -o $PPID -o %PPID -x $1 || \
- pidof -o $$ -o $PPID -o %PPID -x $base`
+ pid=`pidof -c -o $$ -o $PPID -o %PPID -x $1 || \
+ pidof -c -o $$ -o $PPID -o %PPID -x $base`
fi
# Kill it.
@@ -272,8 +272,8 @@ pidofproc() {
return 0
fi
fi
- pidof -o $$ -o $PPID -o %PPID -x $1 || \
- pidof -o $$ -o $PPID -o %PPID -x $base
+ pidof -c -o $$ -o $PPID -o %PPID -x $1 || \
+ pidof -c -o $$ -o $PPID -o %PPID -x $base
}
status() {