samba-b...@samba.org wrote:
--snipp--
It seems that pv is waiting for data from rsync, and rsync is waiting for data
too (stuck in select()) and not closing the input to pv. So it's a deadlock.
Same happens when you substitute pv with something else (like dd). It seems
that those commands just don't behave like rsync expects them to.
---
Would a use of "stdbuf" (coreutils) help? It allows one to
change the input and/or output buffering of the tools to
from full buffered to line-buffered to unbuffered for tools
normally connected via a pipe.
Haven't found a workaround short of killing everything:
export RSYNC_RSH="sh -c 'pv -qL10k | ssh \"\$@\" | (pv -qL11k; kill \$\$)' ssh"
kill is not a solution I'd be happy with. But I haven't found another.
---
Maybe a suspend/continue would be more gentle than killing things?
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html