added some comments on blocking-io
authorAndrew Tridgell <tridge@samba.org>
Fri, 23 Jun 2000 13:54:29 +0000 (13:54 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 23 Jun 2000 13:54:29 +0000 (13:54 +0000)
util.c

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;