[erlang-patches] fix process leak in ssh_system_sup (dynamicaly created childs where not cleaned up)
Thu Sep 2 17:18:42 CEST 2010
Thanks for reporting this! I've added your patch and it will be included
in R14B. I had to do some additional changes to avoid a race condition
between some processes.
Niclas @ Erlang/OTP
On Wed, 1 Sep 2010, Stefan Grundmann wrote:
> The ssh_system_sup supervisor supervises one ssh_subsystem_sup process for
> every client connection. There was no functionality to free resources
> (terminate_child/ delete_child) when a client connection was closed.
> Which lead to one ssh_subsystem_sup and one ssh_channel_sup process left over.
> This commit adds ssh_system_sup:stop_subsystem/2 and code that calls it
> in ssh_connection_manager:terminate/2.
> git fetch git://github.com/sg2342/otp.git fix_ssh_system_sup_proc_leak
> best regards
> Stefan Grundmann
> erlang-patches (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
More information about the erlang-patches