<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1251"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Sure but when function returns the same value {ok,Child,Info} …</div><div>I am always getting {ok, Child}</div><div><br></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 class="Apple-interchange-newline"><blockquote type="cite"><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><br></body></html>