View | Details | Raw Unified | Return to bug 2476
Collapse All | Expand All

(-)a/channels.c (-2 / +10 lines)
Lines 1774-1779 channel_handle_wfd(Channel *c, fd_set *readset, fd_set *writeset) Link Here
1774
				debug2("channel %d: input draining.", c->self);
1774
				debug2("channel %d: input draining.", c->self);
1775
				c->type = SSH_CHANNEL_INPUT_DRAINING;
1775
				c->type = SSH_CHANNEL_INPUT_DRAINING;
1776
			} else {
1776
			} else {
1777
				if (len < 0 && errno != EPIPE)
1778
					error("channel %d: write error: %s",
1779
					    c->self, strerror(errno));
1777
				chan_write_failed(c);
1780
				chan_write_failed(c);
1778
			}
1781
			}
1779
			return -1;
1782
			return -1;
Lines 1820-1827 channel_handle_efd(Channel *c, fd_set *readset, fd_set *writeset) Link Here
1820
			    errno == EWOULDBLOCK))
1823
			    errno == EWOULDBLOCK))
1821
				return 1;
1824
				return 1;
1822
			if (len <= 0) {
1825
			if (len <= 0) {
1823
				debug2("channel %d: closing write-efd %d",
1826
				if (len < 0 && errno != EPIPE) {
1824
				    c->self, c->efd);
1827
					error("channel %d: write-efd error: %s",
1828
					    c->self, strerror(errno));
1829
				} else {
1830
					debug2("channel %d: write-efd close %d",
1831
					    c->self, c->efd);
1832
				}
1825
				channel_close_fd(&c->efd);
1833
				channel_close_fd(&c->efd);
1826
			} else {
1834
			} else {
1827
				buffer_consume(&c->extended, len);
1835
				buffer_consume(&c->extended, len);

Return to bug 2476