[erlang-questions] Supervisor "spin rates"
Mike Oxford
moxford@REDACTED
Thu Apr 14 01:43:19 CEST 2011
Somehow I misread that section to mean that 'ignore' would be treated as a
non-success and would cause supervisor shutdown.
Thank you!
-mox
On Wed, Apr 13, 2011 at 4:05 PM, Vance Shipley <vances@REDACTED> wrote:
> On Wed, Apr 13, 2011 at 03:26:30PM -0700, Mike Oxford wrote:
> } That will terminate the supervisor as well, which is then restarted....
>
> The supervisor will ignore the child. supervisor:start_child/2
> will return {ok, undefined}.
>
> Start the supervisor:
>
> 2> {ok, Sup} = supervisor:start_link(ignore_sup, []).
> {ok,<0.43.0>}
>
> It has no children:
>
> 3> supervisor:which_children(Sup).
> []
>
> Starting the child:
>
> 4> supervisor:start_child(Sup, []).
>
> =ERROR REPORT==== 13-Apr-2011::18:59:01 ===
> Ignoring: <0.46.0>
> {ok,undefined}
>
> The child specification is installed:
>
> 5> supervisor:which_children(Sup).
> [{undefined,undefined,worker,[ignore_server]}]
>
> But the child process reported above is not alive:
>
> 6> is_process_alive(list_to_pid("<0.46.0>")).
> false
>
>
> --
> -Vance
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110413/672fe266/attachment.htm>
More information about the erlang-questions
mailing list