Fix rsync wrapper hanging forever after sync completes

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.
This commit is contained in:
Gmer4Lfe
2026-06-07 09:27:38 -04:00
parent af313352c0
commit 80b1ee4f0d
+2 -2
View File
@@ -452,8 +452,8 @@ else
fi fi
echo "━━━━━━━━━━━━━━━━━━━━━━━" echo "━━━━━━━━━━━━━━━━━━━━━━━"
# Flush tee and preserve log for UI # Flush tee and preserve log for UI — close both ends of the pipe so tee gets EOF
exec 1>&-; wait exec 1>&- 2>&-; wait
cp "$VV_LIVE_LOG" "$VV_LAST_LOG" 2>/dev/null cp "$VV_LIVE_LOG" "$VV_LAST_LOG" 2>/dev/null
rm -f "$VV_LIVE_LOG" rm -f "$VV_LIVE_LOG"