hang on exit bug under Linux

Nicolas Williams Nicolas.Williams at ubsw.com
Wed Dec 12 09:28:20 EST 2001


On Wed, Dec 12, 2001 at 09:18:05AM +1100, Damien Miller wrote:
> On Tue, 11 Dec 2001, Dan Astoorian wrote:
> 
> > On Mon, 10 Dec 2001 23:20:14 EST, Nicolas Williams writes:
> > > 
> > > I say: with ptys, send SIGHUP when the main process exits and/or when
> > > the client closes the session.
> > 
> > Would setting the HUPCL termios cflag for the pty a) work, b) be
> > portable, and c) be more appropriate than killpg()?
> 
> What about sessions without a pty?

They should always "hang", or, rather, "hang around."

In any case, I no longer think that sshd should do killpg(HUP) when the
session leader exits, nor, for that matter, should it set the HUPCL
termios cflag for the pty.

Instead I think the client should have an option to, when the sshd
tells it the session exited, close the related channels and/or pass a
SIGHUP to the session which the sshd would then send to the process
group of the session leader.

> -d
> 


Cheers,

Nico
--
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-

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