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

Gert Doering gert at greenie.muc.de
Thu Nov 15 21:32:22 EST 2001


Hi,

On Thu, Nov 15, 2001 at 11:14:24AM +0100, Markus Friedl wrote:
[..]
> allow data loss in the server if a pty is allocated. i think
> this would match the telnetd and rlogind behaviour best.

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".

> 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.

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.

The background processes will then get some kind of error (I assume
vhangup -> I/O error or something like this) if they try to write
something after the connection is already closed.

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