[erlang-questions] gen_server and init

Karolis Petrauskas k.petrauskas@REDACTED
Mon Jul 27 18:59:32 CEST 2015


I think this is not the truth anymore, as pids are now reused. You can
get a message that was meant for previously living process with the
same PID.

Karolis

On Mon, Jul 27, 2015 at 6:03 PM, Max Lapshin <max.lapshin@REDACTED> wrote:
> Loic is right, but you should understand that you can receive message before
> your  "self() ! init" message only if you explicitly tell your pid someone
> in init()  because before the end of init your pid is unknown to others.
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list