When ssh is run in master mode and with the -N flag, it should terminate after receiving the "stop" control once all the slaves (and port forwarders?) are done.
Yes, this sounds like a bug
Retarget uncompleted bugs from 6.1 => 6.2
Retarget bugs from 6.1 => 6.2
Created attachment 2187 [details] tell mux master to close when using -N and all clients gone ok, so the problem here is that ssh assumes there's still a session in this case, then eventually runs a select(2) that never returns. the attached patch should fix this, please try it.
committed, thanks it will be in the 6.2 release.
mark bugs closed by openssh-6.2 release as CLOSED