hang on exit - bug or no bug?

Nicolas Williams Nicolas.Williams at ubsw.com
Sat Oct 6 04:25:27 EST 2001


On Fri, Oct 05, 2001 at 10:55:10AM -0500, mouring at etoh.eviladmin.org wrote:
> On Fri, 5 Oct 2001, Markus Friedl wrote:
> >
> > 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.
> >
> 
> I assume this is part of a bigger patch  where 'option.discard' exists.
> 
> One may suggestion only activing this code for slogin only.  That way it
> would mirror rsh/rlogin.

That seems quite reasonable. And make it a named option too...

> - Ben


Nico
--

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




More information about the openssh-unix-dev mailing list