[erlang-questions] Simple supervisor failed_to_start_child

Pierre Fenoll <>
Mon Apr 29 16:59:30 CEST 2013


Thanks to Slava Yurin, that nailed it!
Indeed, start_link/0 should return {ok,Pid} | ignore | {error,Error}.


On 29 April 2013 08:44, Slava Yurin <> wrote:

> Your stateful module return incorect value from start_link().
> https://bitbucket.org/fenollp/brocessing/src/5d7169f4600a/src/stateful.erl?at=master#cl-113
> .
> See http://www.erlang.org/doc/man/gen_server.html#start_link-3.
>
> 29.04.2013, 03:59, "Pierre Fenoll" <>:
>
> Hi all,
>
> I am trying start a very simple one_for_one supervisor architecture over
> a working project; but all I get when I start_link/0 my supervisor is:
>
> {shutdown,{failed_to_start_child,brocessing,brocessing}}
>
>
> I don't know why it mentions "brocessing" twice; well I don't understand
> the message
> much. brocessing is a module (containing the API to start a gen_server),
> but also it is
> the registered name of my gen_server.
>
> Here is my setup, and the whole code not far away: [1]
>
> So far Internet hasn't been helpful. Can you share your insights?
>
> [1]:
> https://bitbucket.org/fenollp/brocessing/src/5d7169f4600a05be42942ce890b2bee42c3fddda/src/brocessing_sup.erl?at=master
>
> Cheers,
> Pierre
> ,
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130429/928da0fd/attachment.html>


More information about the erlang-questions mailing list