Damien Miller
2000-Apr-26 23:55 UTC
http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=95669367427640&w=2 (fwd)
--
| "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;
}
Harold Gutch
2000-Apr-27 01:50 UTC
http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=95669367427640&w=2 (fwd)
On Thu, Apr 27, 2000 at 09:55:56AM +1000, Damien Miller wrote:> + if (errno == EGAIN) > + continue;Just wondering, as my only OpenBSD box currently is down - shouldn't that be EAGAIN instead of EGAIN? At least I didn't find any reference of EGAIN under FreeBSD 2.2.8 and under Linux 2.2.14 (RedHat something if that matters) just right now... bye, Harold -- Someone should do a study to find out how many human life spans have been lost waiting for NT to reboot. Ken Deboy on Dec 24 1999 in comp.unix.bsd.freebsd.misc