[erlang-questions] Why does the restart strategy "{one_for_one, 10, 10}" still kill my application?

Shelton Tang <>
Wed Oct 4 19:33:57 CEST 2006


Hi Gunilla,

Thank you for the info. When I start erl with "erl -boot start_sasl",
the last outuput shows the sup shutdown is because of one child
shutdown. The child calls gen_tcp:listen/2 but got eaddrnotavail since
i got a wrong IP from inet:getiflist.

so my question is, do I need to trap_exit in my supervisor?

Regards,
Shelton

On 10/4/06, Gunilla Arendt <> wrote:
> How do you see the the entire process tree is killed, what error
> messages do you get? Use the start_sasl boot script to ensure you
> see the supervisor and error reports. ("erl -boot start_sasl")
>
> / Gunilla
>
> Shelton Tang wrote:
> > I am writing an application. In myapp_sup:init, I use the restart
> > stragey "{one_for_one, 10, 10}".  For some reason, one process in the
> > three will exit since an invalid socket operation.  However, I found
> > the entire tree will be killed in this case.  I use "transient" as the
> > type and also try "temporary".  But same result.  Can anybody give me
> > a hand?
> > _______________________________________________
> > erlang-questions mailing list
> > 
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> >
> >
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list