status of the hang-on-exit-bug

Markus Friedl markus at openbsd.org
Wed Oct 24 00:59:56 EST 2001


openssh's sshd currently tries to do what the rshd does:

after a SIGCHLD the sshd waits for an EOF from the login shell on
stdout/stderr. this is because we don't want to loose any data.

you can avoid this problem by starting the remote command with
stdin/out/err redirected to /dev/null.

unlike sshd both telnetd and rlogind exit on SIGCHLD. however, this
is because they don't care about lost data. but ssh needs to care.
rlogin does not. this is why ssh hangs and rlogin does not.

-m



More information about the openssh-unix-dev mailing list