New ssh option, "-f -f", like "-f", but fork() after the first successful forwarded port/display/agent channel open. The idea is that a successful forwarded port/display/agent channel open implies that the remote command started successfully and can report errors in some manner other than by writing to stderr or exiting with a non-zero exit code. So that is a great time for ssh to fork() off. Also see new forkoff() function added to clientloop.c - it correctly, I think, closes the session channel.
Created attachment 15 [details] feature patch for -f -f
Created attachment 1536 [details] delay fork when ExitOnForwardFailure set This is quite easy now that we have proper request callback queues, but I don't think we need a funny non-idempotent option for it. This patch makes -f wait until after the rfwd replies have been received if ExitOnForwardFailure=yes.
Put this on the list for 5.1
fixed - will be in openssh-5.1 (wasn't it worth the wait?)
Mass update RESOLVED->CLOSED after release of openssh-5.1