[PATCH]: Patch to fix hang on exit bug under Linux and add optional exit delay

Gert Doering gert at greenie.muc.de
Fri Nov 16 03:36:29 EST 2001


Hi,

On Thu, Nov 15, 2001 at 10:44:51AM -0500, Ed Phillips wrote:
> > I would accept this, and prefer it to "I have run something in the
> > background that I know will not create output but fails to close
> > stdin/stdout/stderr and now I can't log out cleanly".
> 
> I have more of a problem with the case where "I have no processes running
> in the background and no other child processes of sshd running at all and
> sshd/ssh fail to exit".  

Which is exactly what I'm talking about.

[..]
> > That's what "all implementation I'm used to" do: if I logout the
> > connection is closed, no matter what background processes are still
> > alive.
> 
> This is problematic... if you are forwarding X11 processes then ssh needs
> to hang around (or at least fork off a child) to continue to process the X
> traffic.

OK, make this: "If I logout and no port or X11 forwardings are active"
(which is what I was thinking anyway).

Or: "when I log out of a pty session do not care about interactive children
that might have FDs open".

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert.doering at physik.tu-muenchen.de



More information about the openssh-unix-dev mailing list