[erlang-questions] Is the PID known in MyModule:init/1 function?

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Thu Jul 30 12:38:08 CEST 2015


Yes,

Module:init/1 runs in the context of the newly created process.

On Thu, Jul 30, 2015 at 11:56 AM, Martin Koroudjiev <mrtndimitrov@REDACTED>
wrote:

> Hello,
>
> I have to save the PID of the dynamically created gen_servers. Can I use
> self/0 in MyModule:init/1 function?
>
> Thanks,
> Martin
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



-- 
J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150730/487f7289/attachment.htm>


More information about the erlang-questions mailing list