Blame openssh-5.6p1-exit-deadlock.patch
|
Jan F. Chadima |
1b8a26 |
diff -up openssh-5.6p1/channels.c.exit-deadlock openssh-5.6p1/channels.c
|
|
Jan F. Chadima |
1b8a26 |
--- openssh-5.6p1/channels.c.exit-deadlock 2010-08-05 15:09:48.000000000 +0200
|
|
Jan F. Chadima |
1b8a26 |
+++ openssh-5.6p1/channels.c 2010-08-23 12:41:43.000000000 +0200
|
|
Jan F. Chadima |
1b8a26 |
@@ -1647,6 +1647,10 @@ channel_handle_wfd(Channel *c, fd_set *r
|
|
Jan F. Chadima |
1b8a26 |
u_int dlen, olen = 0;
|
|
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) &&
|