summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-02-26 21:38:03 +0100
committerErich Eckner <git@eckner.net>2022-02-26 21:38:03 +0100
commit34bbc00932952770d117442a3e28e2ac5889094f (patch)
treefcf1fcbcb7902b57795b42a7e039a198d8ad17f3
parentd0b174d2df7b867e474448c58245131454e22d6a (diff)
downloadhardlinkedBackups-34bbc00932952770d117442a3e28e2ac5889094f.tar.xz
backup-progress: use /proc/$pid instead of kill -0 $pid
-rwxr-xr-xbackup-progress.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup-progress.in b/backup-progress.in
index 6b3d513..a2063b8 100755
--- a/backup-progress.in
+++ b/backup-progress.in
@@ -10,7 +10,7 @@ declare -A sz
for backupID in "${!backups[@]}"; do
[ -s "/tmp/${backupID}.pid" ] || continue
- kill -0 $(cat "/tmp/${backupID}.pid") || continue
+ [ -d "/proc/$(cat "/tmp/${backupID}.pid")" ] || continue
dir="${backups["${backupID}"]%% *}"
dir="${dir%/}"
nm[${#nm[@]}]=$(