hang on exit bug under Linux

Markus Friedl markus at openbsd.org
Tue Dec 11 07:28:35 EST 2001


On Mon, Dec 10, 2001 at 10:50:06AM -0800, Dan Kaminsky wrote:
> Look: ssh user at host "command" needs to never, ever hang.

wrong.

it needs to hang.

it needs to hang until it can be sure that 'command' does not need
any input.

it needs to hang until it can be sure that 'command' does not produce
any output.

it needs to hang until 'command' exits because sshd needs to tell
the exit status from 'command' to ssh.

	$ ssh -n host 'exec > /dev/null 2>&1; sleep 3; exit 5' 
	$ echo $?

and so on.



More information about the openssh-unix-dev mailing list