vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Tomáš Mráz fa1481
--- openssh-4.0p1/channels.c.exit-deadlock	2005-03-01 11:24:33.000000000 +0100
Tomáš Mráz fa1481
+++ openssh-4.0p1/channels.c	2005-04-05 22:25:15.197226237 +0200
Tomáš Mráz fa1481
@@ -1403,6 +1403,10 @@
Tomáš Mráz fa1481
 	u_int dlen;
Tomáš Mráz fa1481
 	int len;
Tomáš Mráz fa1481
 
Tomáš Mráz fa1481
+	if(c->wfd != -1 && buffer_len(&c->output) > 0 && c->ostate == CHAN_OUTPUT_WAIT_DRAIN) {
Tomáš Mráz fa1481
+		debug("channel %d: forcing write", c->self);
Tomáš Mráz fa1481
+		FD_SET(c->wfd, writeset);
Tomáš Mráz fa1481
+	}
Tomáš Mráz fa1481
 	/* Send buffered output data to the socket. */
Tomáš Mráz fa1481
 	if (c->wfd != -1 &&
Tomáš Mráz fa1481
 	    FD_ISSET(c->wfd, writeset) &&