[erlang-questions] supervisor children's pid

Roberto Ostinelli roberto@REDACTED
Wed May 18 00:37:02 CEST 2011


dear list,

i'm starting three anonymous gen_server from a supervisor. i need every
gen_server to know the pid of the other two.

currently, i'm calling supervisor:which_children/1 on the init function of
the gen_servers, and match the Ids to get the Child [Pid].

is this the best strategy to achieve this?

thank you,

r.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110518/8846cf1f/attachment.htm>


More information about the erlang-questions mailing list