Matthias Lang matthias@REDACTED
Tue Apr 27 11:26:12 CEST 2004

Dustin Sallings writes:

 > (dustinti@REDACTED)1> Pid = spawn(rubik@REDACTED, mrecv, init, []).
 > <4147.40.0>
 > (dustinti@REDACTED)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 mailing list