Back out the last change which is probably actually a red herring. Argh!

This commit is contained in:
Brian Feldman 2001-06-26 15:15:22 +00:00
parent c3e2f3baec
commit 0c82706bc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78827

View File

@ -871,10 +871,8 @@ channel_handle_rfd(Channel *c, fd_set * readset, fd_set * writeset)
len = read(c->rfd, buf, sizeof(buf));
if (len < 0 && (errno == EINTR || errno == EAGAIN))
return 1;
if (len == 0)
return 1;
if (len < 0) {
debug("channel %d: read<0 rfd %d len %d",
if (len <= 0) {
debug("channel %d: read<=0 rfd %d len %d",
c->self, c->rfd, len);
if (c->type != SSH_CHANNEL_OPEN) {
debug("channel %d: not open", c->self);