http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=95669367427640&w=2 (fwd)

Damien Miller djm at mindrot.org
Thu Apr 27 09:55:56 EST 2000



-- 
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)



---------- Forwarded message ----------
Date: Tue, 25 Apr 2000 19:55:56 -0600 (MDT)
From: Theo de Raadt <deraadt at cvs.openbsd.org>
To: djm at cvs.openbsd.org, markus at cvs.openbsd.org, provos at cvs.openbsd.org,
     speno at isc.upenn.edu
Subject: re:
    http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=95669367427640&w=2

Index: clientloop.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/clientloop.c,v
retrieving revision 1.21
diff -u -r1.21 clientloop.c
--- clientloop.c	2000/04/19 07:05:48	1.21
+++ clientloop.c	2000/04/26 01:54:54
@@ -873,6 +873,8 @@
 		len = write(fileno(stdout), buffer_ptr(&stdout_buffer),
 		    buffer_len(&stdout_buffer));
 		if (len <= 0) {
+			if (errno == EGAIN)
+				continue;
 			error("Write failed flushing stdout buffer.");
 			break;
 		}
@@ -884,6 +886,8 @@
 		len = write(fileno(stderr), buffer_ptr(&stderr_buffer),
 		    buffer_len(&stderr_buffer));
 		if (len <= 0) {
+			if (errno == EGAIN)
+				continue;
 			error("Write failed flushing stderr buffer.");
 			break;
 		}






More information about the openssh-unix-dev mailing list