The attached patch fixes the problem by putting our stderr fd back into blocking I/O mode.
A bit of digging in the openssh bugzilla throws up this:
http://bugzilla.mindrot.org/show_bug.cgi?id=26
which suggests that ssh really does want to keep stderr non-blocking :-(
Cheers,
---- David
-- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html