diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-06-23 13:54:29 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-06-23 13:54:29 +0000 |
commit | 08e5094d7fc2e863b10438a4154580ea95576d59 (patch) | |
tree | 53225cb428ffe2982414b0f5859e86eb9a3f047d /util.c | |
parent | 4b3977bf006fa50f9a920078a0998823b1de49e4 (diff) | |
download | rsync-08e5094d7fc2e863b10438a4154580ea95576d59.tar.gz |
added some comments on blocking-io
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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; |