[PATCH] fix for Linux hang on exit bug in 2.9.9p2

Markus Friedl markus at openbsd.org
Sat Sep 29 20:02:04 EST 2001


please don't call chan_shutdown_read() as it will
lead to data loss.

> --- openssh-2.9.9p2/session.c	Sun Sep 16 16:17:15 2001
> +++ openssh-2.9.9p2J/session.c	Thu Sep 27 22:01:07 2001
> @@ -1906,6 +1906,9 @@
>  	 */
>  	if (c->ostate != CHAN_OUTPUT_CLOSED)
>  		chan_write_failed(c);
> +	if (c->istate == CHAN_INPUT_OPEN && compat20) {
> +		chan_shutdown_read(c);
> +	}
>  	s->chanid = -1;
>  }



More information about the openssh-unix-dev mailing list