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

Martin Koroudjiev mrtndimitrov@REDACTED
Thu Jul 30 13:09:36 CEST 2015


Very cool! Thank you all.

Regards,
Martin

On 7/30/2015 1:38 PM, Jesper Louis Andersen wrote:
> 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 <mailto: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 <mailto: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/bb869e96/attachment.htm>


More information about the erlang-questions mailing list