[erlang-questions] supervisor:start_child
mrtndimitrov
mrtndimitrov@REDACTED
Wed Apr 27 00:19:12 CEST 2011
Hi,
I am trying to develop a supervisor that must have different children
specifications. The number of the children are unknown at compile time so be
added dynamically through supervisor:start_child. What shell be the
supervisor's restart strategy? I try with one_for_all and when calling
start_child I receive an error:
{error,{
{'EXIT',{undef,[
{child_process,start_link,[]},
{supervisor,do_start_child,2},
{supervisor,handle_start_child,2},
{supervisor,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}
]}},
{child,undefined,child_process_id,{child_process,start_link,[]},permanent,2000,worker,[child_process]}
}}
Thanks.
--
View this message in context: http://erlang.2086793.n4.nabble.com/supervisor-start-child-tp3476787p3476787.html
Sent from the Erlang Questions mailing list archive at Nabble.com.
More information about the erlang-questions
mailing list