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

This commit is contained in:
green 2001-06-26 15:15:22 +00:00
parent c3258d9fdd
commit fe0162ddb3

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);