<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 29, 2014 at 6:10 PM, Roger Lipscombe <span dir="ltr"><<a href="mailto:roger@differentpla.net" target="_blank">roger@differentpla.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2ot" class="a3s" style="overflow:hidden">Calling supervisor:start_child(A, []) returns {ok, BPid}, where I<br>
really want WPid. What's a sensible way to get hold of it?</div></blockquote></div><br>One way, that is really useful is a process registry like gproc. That way, you can avoid a lot of this "digging for a Pid". It also is faster for lookup since it uses an ETS table, so you can avoid having the need to cache pids.</div><div class="gmail_extra"><br clear="all"><div><br></div>-- <br>J.
</div></div>