From 80b1ee4f0dc5db8c1367a1a55f2679885a78c60c Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sun, 7 Jun 2026 09:27:38 -0400 Subject: [PATCH] Fix rsync wrapper hanging forever after sync completes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit exec 1>&- closed stdout but left stderr holding the tee pipe open, so tee never got EOF and wait blocked indefinitely — keeping the process alive and the locks held until manually killed. --- Rsync/rsync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rsync/rsync.sh b/Rsync/rsync.sh index cfe2411..f7468cf 100755 --- a/Rsync/rsync.sh +++ b/Rsync/rsync.sh @@ -452,8 +452,8 @@ else fi echo "━━━━━━━━━━━━━━━━━━━━━━━" -# Flush tee and preserve log for UI -exec 1>&-; wait +# Flush tee and preserve log for UI — close both ends of the pipe so tee gets EOF +exec 1>&- 2>&-; wait cp "$VV_LIVE_LOG" "$VV_LAST_LOG" 2>/dev/null rm -f "$VV_LIVE_LOG"