[erlang-questions] how to know who is the parent pid of a child pid?

Joe Armstrong <>
Wed Apr 3 13:25:07 CEST 2013


Wise sonnes they be in very deede, That knowe their Parents who did them
breede.

‘A shorte dictionarie for yonge begynners’ [John Withals, 1584]

It's not possible. The parent has to pass this information to the child.
Something like:

     make_child() ->
             S = self(),
             spawn(fun() -> start_child(S) end).

   start_child(Parent) ->
          ...

/Joe






On Wed, Apr 3, 2013 at 1:09 AM, Brisa Jiménez <>wrote:

> Hi everyone,
> I have a question:
> How to know who is the parent pid of a child pid?
> Thank you very much!
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130403/95ed8f15/attachment.html>


More information about the erlang-questions mailing list