<div>Somehow I misread that section to mean that 'ignore' would be treated as a non-success and would cause supervisor shutdown.</div><div><br></div><div>Thank you!</div><div><br></div><div>-mox<br><br><div class="gmail_quote">
On Wed, Apr 13, 2011 at 4:05 PM, Vance Shipley <span dir="ltr"><<a href="mailto:vances@motivity.ca">vances@motivity.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, Apr 13, 2011 at 03:26:30PM -0700, Mike Oxford wrote:<br>
} That will terminate the supervisor as well, which is then restarted....<br>
<br>
</div>The supervisor will ignore the child. supervisor:start_child/2<br>
will return {ok, undefined}.<br>
<br>
Start the supervisor:<br>
<br>
2> {ok, Sup} = supervisor:start_link(ignore_sup, []).<br>
{ok,<0.43.0>}<br>
<br>
It has no children:<br>
<br>
3> supervisor:which_children(Sup).<br>
[]<br>
<br>
Starting the child:<br>
<br>
4> supervisor:start_child(Sup, []).<br>
<br>
=ERROR REPORT==== 13-Apr-2011::18:59:01 ===<br>
Ignoring: <0.46.0><br>
{ok,undefined}<br>
<br>
The child specification is installed:<br>
<br>
5> supervisor:which_children(Sup).<br>
[{undefined,undefined,worker,[ignore_server]}]<br>
<br>
But the child process reported above is not alive:<br>
<br>
6> is_process_alive(list_to_pid("<0.46.0>")).<br>
false<br>
<br>
<br>
--<br>
<font color="#888888"> -Vance<br>
</font></blockquote></div><br></div>