hang on exit - bug or no bug?

Nicolas Williams Nicolas.Williams at ubsw.com
Sat Oct 6 01:06:01 EST 2001


I can certainly confirm, from experience, that, on Solaris,

rsh host command&

hangs if "command" keeps its stdio open. Rlogin is what others are
saying doesn't do this, but, so what?

As Lee Eakin explained yesterday, there's things SSH does that RLOGIN
doesn't, such as agent forwarding, X forwarding, port forwarding, all
of which may or may not be needed by that background command that's
still holding its stdio open.

And how's SSHD to know?

Perhaps there should be an option, that causes SSHD to exit when its
child exits and the session was a TTY session, and to hell with grand-
children's stdio. But the conservative behaviour needs to be available
too.

This is all we're arguing about.

Nico


On Fri, Oct 05, 2001 at 02:18:00PM +0200, Markus Friedl wrote:
> On Thu, Oct 04, 2001 at 06:04:39PM -0500, mouring at etoh.eviladmin.org wrote:
> > If I know what I was looking for
> > I'd be happy to beg and borrow selective pieces of source code from
> > friends to investigate.  But I still am not dead sure what to look for.
> 
> look for:
> 	what happens on SIGCHLD
> 	how to detect that there is no more data from the child
--

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