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

Jesper Louis Andersen <>
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 <>
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
> 
> 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.html>


More information about the erlang-questions mailing list