<div dir="ltr"><span style="font-size:13px;font-family:arial,sans-serif">Thanks to Slava Yurin, that nailed it!</span><br style="font-size:13px;font-family:arial,sans-serif"><span style="font-size:13px;font-family:arial,sans-serif">Indeed, start_link/0 should return {ok,Pid} | ignore | {error,Error}.</span><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 April 2013 08:44, Slava Yurin <span dir="ltr"><<a href="mailto:yurinvv@ya.ru" target="_blank">yurinvv@ya.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Your stateful module return incorect value from start_link(). <a href="https://bitbucket.org/fenollp/brocessing/src/5d7169f4600a/src/stateful.erl?at=master#cl-113" target="_blank">https://bitbucket.org/fenollp/brocessing/src/5d7169f4600a/src/stateful.erl?at=master#cl-113</a>.</div>
<div>See <a href="http://www.erlang.org/doc/man/gen_server.html#start_link-3" target="_blank">http://www.erlang.org/doc/man/gen_server.html#start_link-3</a>.</div><div> </div><div>29.04.2013, 03:59, "Pierre Fenoll" <<a href="mailto:pierrefenoll@gmail.com" target="_blank">pierrefenoll@gmail.com</a>>:</div>
<blockquote type="cite"><div><div class="h5"><div dir="ltr">Hi all,<div> </div><div>I am trying start a very simple one_for_one supervisor architecture over</div><div>a working project; but all I get when I start_link/0 my supervisor is:</div>
<div> </div><div>{shutdown,{failed_to_start_child,brocessing,brocessing}}</div><div> </div><div> </div><div>I don't know why it mentions "brocessing" twice; well I don't understand the message</div><div>
much. brocessing is a module (containing the API to start a gen_server), but also it is</div><div>the registered name of my gen_server.</div><div> </div><div>Here is my setup, and the whole code not far away: [1]</div><div>
</div><div>So far Internet hasn't been helpful. Can you share your insights?</div><div> </div><div>[1]: <a href="https://bitbucket.org/fenollp/brocessing/src/5d7169f4600a05be42942ce890b2bee42c3fddda/src/brocessing_sup.erl?at=master" target="_blank">https://bitbucket.org/fenollp/brocessing/src/5d7169f4600a05be42942ce890b2bee42c3fddda/src/brocessing_sup.erl?at=master</a></div>
<div> </div><div>Cheers,</div><div>Pierre</div></div></div></div><div class="im">,<p>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a></p></div></blockquote></blockquote></div><br></div>