<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Sep 29, 2014 at 9:40 PM, Roger Lipscombe <span dir="ltr"><<a href="mailto:roger@differentpla.net" target="_blank">roger@differentpla.net</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Calling supervisor:start_child(A, []) returns {ok, BPid}, where I<br>
really want WPid. What's a sensible way to get hold of it?<br></blockquote><div><br></div><div>{ok, BPid} = supervisor:start_child(A, []),</div><div>[{_, WPid, _, _}] = supervisor:which_children(BPid)</div></div><div><br></div>-- <div>     -Vance</div>
</div></div>