diff options
author | Erich Eckner <git@eckner.net> | 2022-02-26 21:38:03 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-02-26 21:38:03 +0100 |
commit | 34bbc00932952770d117442a3e28e2ac5889094f (patch) | |
tree | fcf1fcbcb7902b57795b42a7e039a198d8ad17f3 /backup-progress.in | |
parent | d0b174d2df7b867e474448c58245131454e22d6a (diff) | |
download | hardlinkedBackups-34bbc00932952770d117442a3e28e2ac5889094f.tar.xz |
backup-progress: use /proc/$pid instead of kill -0 $pid
Diffstat (limited to 'backup-progress.in')
-rwxr-xr-x | backup-progress.in | 2 |
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[@]}]=$( |