aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-02-04 02:48:37 +0000
committerBill Nottingham <notting@redhat.com>2003-02-04 02:48:37 +0000
commit10d889c4be87e8b9ac8946484f563f186b27d4ce (patch)
tree9feb34605355acabe65cfe1595b254c977766fe1 /rc.d
parent6d46cedaad0acbdb6dd650f7c7d19af4b19d3bff (diff)
downloadinitscripts-10d889c4be87e8b9ac8946484f563f186b27d4ce.tar
initscripts-10d889c4be87e8b9ac8946484f563f186b27d4ce.tar.gz
initscripts-10d889c4be87e8b9ac8946484f563f186b27d4ce.tar.bz2
initscripts-10d889c4be87e8b9ac8946484f563f186b27d4ce.tar.xz
initscripts-10d889c4be87e8b9ac8946484f563f186b27d4ce.zip
fix checkpid for multiple pids (#83401)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 77ee8bd1..5b98cf76 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -71,9 +71,9 @@ checkpid() {
local i
for i in $* ; do
- [ -d "/proc/$i" ] && return 0
+ [ -d "/proc/$i" ] || return 1
done
- return 1
+ return 0
}