Dave Dykstra <[EMAIL PROTECTED]> wrote:
> > +       if (! strstr(command[0],"ssh")) { /* doesn't include ssh */
> > +     set_blocking(STDOUT_FILENO);
> > +       }
> 
> Please test out Andrew's latest rsync in cvs.  He added a --blocking-io
> option which he turns on if the command equals RSYNC_RSH (which is the
> default if you don't set -e) and otherwise it is assumed to be non-blocking;
> this is the opposite default to what you used.  I haven't had a chance to
> test it out much yet myself.
> 
> See http://rsync.samba.org/cvs.html for instructions on using rsync's cvs.
> 
> - Dave Dykstra

While I haven't had time to retrieve the cvs source, I changed the 
first changed line (above) to:

    if (strcmp(command[0],RSYNC_RSH)) {

and that works too, so Andrew's solution should cover the ground with
even more portability.  One note though...RSYNC_RSH_ENV is used in
some cases rather than RSYNC_RSH so my test code is certainly *NOT*
comparable to what Andrew is working on.

--Kurt


--
Kurt Andersen <[EMAIL PROTECTED]>
Agilent Technologies Postmaster
Global Messaging Team, Agilent Technologies
(509) 921-3792

Reply via email to