From 08e5094d7fc2e863b10438a4154580ea95576d59 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 23 Jun 2000 13:54:29 +0000 Subject: [PATCH] added some comments on blocking-io --- util.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; -- 2.34.1