so-called-hang-on-exit

Nicolas.Williams at ubsw.com Nicolas.Williams at ubsw.com
Tue Aug 6 06:31:26 EST 2002


Fair enough on the flushing of the pty. But sshd should still
not close the pty - it should wait for the background processes
to exit and/or dissassociate from the pty.

The client does know that there are background processes left
still holding the pty open. How? Because the client requested
and got a pty, the sshd has sent a session-exit message, and
the channel is still open.

Cheers,

Nico
-- 

> -----Original Message-----
> From: Jani Jaakkola [mailto:jjaakkol at cs.Helsinki.FI]
> Sent: Monday, August 05, 2002 4:20 PM
> To: Williams, Nicolas
> Cc: openssh-unix-dev at mindrot.org
> Subject: RE: so-called-hang-on-exit
> 
> 
> On Mon, 5 Aug 2002 Nicolas.Williams at ubsw.com wrote:
> 
> > 
> > I still think this sort of thing should be done by the client.
> > 
> > The client knows everything that the server knows.
> 
> Except this time is does not. If there is background 
> processses on the 
> tty, the client can either close the session and lose data or wait 
> indefinetely for data from the background processes.
> 
> > So the client
> > can choose to terminate the SSHv2 session when the PTY session
> > process leader exits - and it can implement any other termination
> > heuristic you wish too.
> 
> It needs server modifications that data from the pty session process 
> leaders is not lost. I think rlogin and all other pty using 
> programs have 
> allready implemented this properly; which is that the pty buffer is 
> first emptied and the connection is closed _after_ that.
> 
> - Jani
> 
> 

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