summaryrefslogtreecommitdiff
path: root/backup.in
diff options
context:
space:
mode:
Diffstat (limited to 'backup.in')
-rwxr-xr-xbackup.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup.in b/backup.in
index 6174837..2de7384 100755
--- a/backup.in
+++ b/backup.in
@@ -188,7 +188,7 @@ if ${seldom}; then
done
fi
[ -w "${Basis}" ] || exit 11
-[ -s "${pidFile}" ] && kill -0 $(cat "${pidFile}") 2>/dev/null && exit 5
+[ -s "${pidFile}" ] && [ -d "/proc/$(cat "${pidFile}")" ] && exit 5
echo $$ > "${pidFile}"