summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/initscripts/initscripts-1.0/functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/functions b/meta/recipes-core/initscripts/initscripts-1.0/functions
index c1eac3efda..dd7da2b1c3 100644
--- a/meta/recipes-core/initscripts/initscripts-1.0/functions
+++ b/meta/recipes-core/initscripts/initscripts-1.0/functions
@@ -18,7 +18,8 @@ pidofproc () {
18 18
19 # pidof output null when no program is running, so no "2>/dev/null". 19 # pidof output null when no program is running, so no "2>/dev/null".
20 pid=`pidof $1` 20 pid=`pidof $1`
21 case $? in 21 status=$?
22 case $status in
22 0) 23 0)
23 echo $pid 24 echo $pid
24 return 0 25 return 0
@@ -28,7 +29,7 @@ pidofproc () {
28 exit 127 29 exit 127
29 ;; 30 ;;
30 *) 31 *)
31 return $? 32 return $status
32 ;; 33 ;;
33 esac 34 esac
34} 35}