[erlang-questions] "simple_one_for_one" supervisor childs termination problem

zabrane Mikael zabrane3@REDACTED
Tue Nov 30 13:42:17 CET 2010


Hi Matthew,

> Yeah, but trapping exits is not normally a good idea. Zabrane probably
> wants to use Rabbit's supervisor2 [0] which adds
> simple_one_for_one_terminate which is the same as simple_one_for_one
> except children are killed off as per the indicated shutdown spec (see
> man supervisor).
>
> [0] http://hg.rabbitmq.com/rabbitmq-server/file/default/src/supervisor2.erl

I'll give this a try as I'm already using "gen_server2" (from RabbitMQ).

Thanks for the pointer.

-- 
Regards
Zabrane


More information about the erlang-questions mailing list