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

Damien Miller djm at mindrot.org
Fri Nov 16 08:50:18 EST 2001


On Thu, 15 Nov 2001, Ed Phillips wrote:

> > allow data loss in the server if a pty is allocated. i think
> > this would match the telnetd and rlogind behaviour best.
> > but i'm not 100% sure, people should test their telnetd/rlogind
> > servers and check that they throw away data after the login
> > shell dies. but once again: openssh is not telnet.
> 
> I'm still not understanding why sshd can't figure out when to close the
> socket that connects back to the client... is this just the open-ended
> design of the V2 protocol?  Just because there are no sshd children left
> running and no file desriptors left to process, sshd still needs to stay
> running?

How about stracing or trussing a sshd and seeing for youself.

-d

-- 
| By convention there is color,       \\ Damien Miller <djm at mindrot.org>
| By convention sweetness, By convention bitterness, \\ www.mindrot.org
| But in reality there are atoms and space - Democritus (c. 400 BCE)




More information about the openssh-unix-dev mailing list