[erlang-questions] return supervisor:start_child

Dmitry Kolesnikov <>
Mon Jan 7 15:27:14 CET 2013


Sure but when function returns the same value  {ok,Child,Info} …
I am always getting {ok, Child}

- Dmitry

On Jan 7, 2013, at 4:21 PM, Slava Yurin <> wrote:

>  http://www.erlang.org/doc/man/supervisor.html#start_child-2:
>  
> If the child process start function returns {ok,Child} or {ok,Child,Info}, the child specification and pid is added to the supervisor and the function returns the same value.
>  
> 07.01.2013, 21:12, "Dmitry Kolesnikov" <>:
> Hello,
> 
> Here is copy-paste of supervisor:start_child.
> 
> start_child(SupRef, ChildSpec) -> Result
>         Result = {ok,Child} | {ok,Child,Info} | {error,Error}
> 
> When supervisor return {ok,Child,Info} instead of {ok, Child}? I've never seen such return.
> 
> - Dmitry
> 
> _______________________________________________
> 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/20130107/517f25a9/attachment.html>


More information about the erlang-questions mailing list