SSH connection hanging on logout

Markus Friedl markus.friedl at informatik.uni-erlangen.de
Thu May 17 03:59:11 EST 2001


On Wed, May 16, 2001 at 05:42:18PM -0000, John Bowman wrote:
> Here is a perhaps a slightly more robust version (in case of internal
> errors; see chan_read_failed_12) of the hang-on-exit patch.
> 
> In session.c, I've changed the line
> 	if (c->istate != CHAN_INPUT_CLOSED && compat20) {
> to
> 	if (c->istate == CHAN_INPUT_OPEN && compat20) {
> 
> In practice this shouldn't make any difference, since c->istate
> should always equal either CHAN_INPUT_CLOSED or CHAN_INPUT_OPEN
> within session_exit_message.

i think that shutdown should only be allowed if c->istate ==
CHAN_INPUT_CLOSED;

moreover, i'm still waiting for feedback on what rlogind does on
these systems.



More information about the openssh-unix-dev mailing list