From: Andrew Tridgell Date: Fri, 23 Jun 2000 13:54:29 +0000 (+0000) Subject: added some comments on blocking-io X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/08e5094d7fc2e863b10438a4154580ea95576d59 added some comments on blocking-io --- diff --git a/util.c b/util.c index e4ebd254..d8d4e9d6 100644 --- a/util.c +++ b/util.c @@ -82,7 +82,16 @@ int fd_pair(int fd[2]) } -/* this is derived from CVS code */ +/* this is derived from CVS code + + note that in the child STDIN is set to blocking and STDOUT + is set to non-blocking. This is necessary as rsh relies on stdin being blocking + and ssh relies on stdout being non-blocking + + if blocking_io is set then use blocking io on both fds. That can be + used to cope with badly broken rsh implementations like the one on + solaris. + */ int piped_child(char **command,int *f_in,int *f_out) { int pid;