hang on exit bug under Linux

Markus Friedl markus at openbsd.org
Sat Jan 5 21:36:23 EST 2002


i posted this before.

there was lots of talk, but not much feed back.


> Message-ID: <20011005173908.A8148 at faui02.informatik.uni-erlangen.de>
> perhaps it's acceptable to discard data for sessions with ttys,
> but i'm not sure yet.
> 
> session.c:session_exit_message()
> 
>         if (c->ostate != CHAN_OUTPUT_CLOSED)
> 		chan_write_failed(c);
> +	if (s->ttyfd != -1 && option.discard && c->istate == CHAN_INPUT_OPEN)
> +		chan_read_failed(c);
>         s->chanid = -1;
> 
> should help.



More information about the openssh-unix-dev mailing list