diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1846,9 +1846,13 @@ session_exit_message(Session *s, int status) | |||
1846 | * interested in data we write. | 1846 | * interested in data we write. |
1847 | * Note that we must not call 'chan_read_failed', since there could | 1847 | * Note that we must not call 'chan_read_failed', since there could |
1848 | * be some more data waiting in the pipe. | 1848 | * be some more data waiting in the pipe. |
1849 | * djm - This is no longer true as we have allowed one pass through | ||
1850 | * the select loop before killing the connection | ||
1849 | */ | 1851 | */ |
1850 | if (c->ostate != CHAN_OUTPUT_CLOSED) | 1852 | if (c->ostate != CHAN_OUTPUT_CLOSED) |
1851 | chan_write_failed(c); | 1853 | chan_write_failed(c); |
1854 | if (c->istate != CHAN_INPUT_CLOSED) | ||
1855 | chan_read_failed(c); | ||
1852 | s->chanid = -1; | 1856 | s->chanid = -1; |
1853 | } | 1857 | } |
1854 | 1858 | ||