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:
+2
-2
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user