Translating from pid to node name

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Translating from pid to node name

Sean Hinde-2
> I have a server process which is going to get the pid of another
> process, most likely from another node (erts node).  How can I
> translate that pid to the name of the node that its coming from?

You can just use node(Pid).

The docs for the erlang module are large but very useful :)

- Sean



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.