[PATCH]: Patch to fix hang on exit bug under Linux and add optional exit delay
Ed Phillips
ed at UDel.Edu
Fri Nov 16 03:54:00 EST 2001
On Thu, 15 Nov 2001, Markus Friedl wrote:
> Date: Thu, 15 Nov 2001 17:20:39 +0100
> From: Markus Friedl <markus at openbsd.org>
> To: Ed Phillips <ed at UDel.Edu>
> Cc: Peter W <peterw at usa.net>, Gert Doering <gert at greenie.muc.de>,
> Andreas Hasenack <andreas at conectiva.com.br>, pcpa at conectiva.com.br,
> openssh-unix-dev at mindrot.org, openssh at openbsd.org
> Subject: Re: [PATCH]: Patch to fix hang on exit bug under Linux and add
> optional exit delay
>
> On Thu, Nov 15, 2001 at 11:07:45AM -0500, Ed Phillips wrote:
> > I agree. But then again, I'd like for ssh/sshd to NOT hang around if I've
> > pressed CTRL-D to logout... and (of course) there are no other children
> > process of sshd left to process. As far as I can tell, this situation is
> > still causing hangs for me on occasion.
>
> if you press CTRl-D and the remote program has something to
> say to you, it won't close the connection.
So the problem is that when I press CTRL-D, the client can't just exit
because at some point in the future, if there is still something running
on the server side (a child processes of sshd), it might write on its
stdout/stderr to be sent back to the client? In contrast, if all of the
sshd children processes have exited on the server side, the client can
supposedly tell because of the V2 protocol - so the client can safely
exit?
Ed
Ed Phillips <ed at udel.edu> University of Delaware (302) 831-6082
Systems Programmer III, Network and Systems Services
finger -l ed at polycut.nss.udel.edu for PGP public key
More information about the openssh-unix-dev
mailing list