]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-git.patch
fix checking if pidfile was specified <Krzysztof Mazur>
[packages/rc-scripts.git] / rc-scripts-git.patch
1 diff --git a/lib/functions b/lib/functions
2 index 8d018f7..501cac9 100644
3 --- a/lib/functions
4 +++ b/lib/functions
5 @@ -1009,7 +1009,7 @@ pidofproc() {
6         fi
7  
8         # Next try "pidof" if pidfile is not specified
9 -       if [ -z "$pid" ] && [ -z "$pidfile" ]; then
10 +       if [ -z "$pid" ] && [ -z "$2" ]; then
11                 pid=$(pidof -o $$ -o $PPID -o %PPID -x "$1")
12         fi
13  
This page took 0.098185 seconds and 4 git commands to generate.