1 diff -up openssh-5.6p1/channels.c.exit-deadlock openssh-5.6p1/channels.c
2 --- openssh-5.6p1/channels.c.exit-deadlock 2010-08-05 15:09:48.000000000 +0200
3 +++ openssh-5.6p1/channels.c 2010-08-23 12:41:43.000000000 +0200
4 @@ -1647,6 +1647,10 @@ channel_handle_wfd(Channel *c, fd_set *r
8 + if(c->wfd != -1 && buffer_len(&c->output) > 0 && c->ostate == CHAN_OUTPUT_WAIT_DRAIN) {
9 + debug("channel %d: forcing write", c->self);
10 + FD_SET(c->wfd, writeset);
12 /* Send buffered output data to the socket. */
14 FD_ISSET(c->wfd, writeset) &&