summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-23 13:54:29 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-23 13:54:29 +0000
commit08e5094d7fc2e863b10438a4154580ea95576d59 (patch)
tree53225cb428ffe2982414b0f5859e86eb9a3f047d /util.c
parent4b3977bf006fa50f9a920078a0998823b1de49e4 (diff)
downloadrsync-08e5094d7fc2e863b10438a4154580ea95576d59.tar.gz
added some comments on blocking-io
Diffstat (limited to 'util.c')
-rw-r--r--util.c11
1 files changed, 10 insertions, 1 deletions
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;