From 34bbc00932952770d117442a3e28e2ac5889094f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 26 Feb 2022 21:38:03 +0100 Subject: backup-progress: use /proc/$pid instead of kill -0 $pid --- backup-progress.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[@]}]=$( -- cgit v1.2.3-70-g09d2