[erlang-questions] Get grandchild pid when using nested supervisors?

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Tue Sep 30 16:09:46 CEST 2014


On Mon, Sep 29, 2014 at 6:10 PM, Roger Lipscombe <roger@REDACTED>
wrote:

> Calling supervisor:start_child(A, []) returns {ok, BPid}, where I
> really want WPid. What's a sensible way to get hold of it?
>

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.


-- 
J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140930/98905e43/attachment.htm>


More information about the erlang-questions mailing list