Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4b3977b
)
added some comments on blocking-io
author
Andrew Tridgell
<tridge@samba.org>
Fri, 23 Jun 2000 13:54:29 +0000
(13:54 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 23 Jun 2000 13:54:29 +0000
(13:54 +0000)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
e4ebd25
..
d8d4e9d
100644
(file)
--- 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;
int piped_child(char **command,int *f_in,int *f_out)
{
int pid;