From 5993935f76e66c957f02efaa8fc0c8ff8a3f92c9 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sun, 15 Oct 2000 12:21:32 +1100 Subject: - (djm) Fix ssh2 hang on background processes at logout. --- session.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'session.c') diff --git a/session.c b/session.c index a12e2a0d8..9a213923c 100644 --- a/session.c +++ b/session.c @@ -1846,9 +1846,13 @@ session_exit_message(Session *s, int status) * interested in data we write. * Note that we must not call 'chan_read_failed', since there could * be some more data waiting in the pipe. + * djm - This is no longer true as we have allowed one pass through + * the select loop before killing the connection */ if (c->ostate != CHAN_OUTPUT_CLOSED) chan_write_failed(c); + if (c->istate != CHAN_INPUT_CLOSED) + chan_read_failed(c); s->chanid = -1; } -- cgit v1.2.3