<div>When you make your own start function:</div><div> </div><div> </div><div>start_link(Arg) -></div><div>  {ok, Pid} = gen_server:start_link(test_name, ?MODULE, Arg, []),</div><div>  {ok, Pid, [some_great_info]}.</div><div> </div><div>init(_Arg) -></div><div>  ...</div><div> </div><div>07.01.2013, 21:27, "Dmitry Kolesnikov" <dmkolesnikov@gmail.com>:</div><blockquote><div>Sure but when function returns the same value  {ok,Child,Info} …</div><div>I am always getting {ok, Child}</div><div> </div><div>- Dmitry</div><br /><div><div>On Jan 7, 2013, at 4:21 PM, Slava Yurin <<a href="mailto:YurinVV@yandex.ru">YurinVV@yandex.ru</a>> wrote:</div><br /><blockquote><div> <a href="http://www.erlang.org/doc/man/supervisor.html#start_child-2">http://www.erlang.org/doc/man/supervisor.html#start_child-2</a>:</div><div> </div><div><strong>If the child process start function returns <span>{ok,Child}</span> or <span>{ok,Child,Info}</span></strong><span>, the child specification and pid is added to the supervisor and <strong>the function returns the same value</strong>.</span></div><div> </div><div>07.01.2013, 21:12, "Dmitry Kolesnikov" <<a href="mailto:dmkolesnikov@gmail.com">dmkolesnikov@gmail.com</a>>:</div><blockquote><p>Hello,<br /><br />Here is copy-paste of supervisor:start_child.<br /><br />start_child(SupRef, ChildSpec) -> Result<br />        Result = {ok,Child} | {ok,Child,Info} | {error,Error}<br /><br />When supervisor return {ok,Child,Info} instead of {ok, Child}? I've never seen such return.<br /><br />- Dmitry<br /><br />_______________________________________________<br />erlang-questions mailing list<br /><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br /><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></p></blockquote></blockquote></div></blockquote>