Tue Apr 27 11:26:12 CEST 2004
Dustin Sallings writes:
> ()1> Pid = spawn(, mrecv, init, ).
> ()2> register(mrecv, Pid).
You can't use 'register' to register PIDs which are on another node.
(This is kinda an RTFM, though the FM is not very clear about telling
you that erlang:register is for local processes only. Also, while the
manual says that register will give you a 'badarg' if Pid is remote,
R8B doesn't actually do that. That is a bug.)
Take a look at the 'global' module.
More information about the erlang-questions