linking processes on different nodes?
Vlad Dumitrescu XX (LN/EAB)
vlad.xx.dumitrescu@REDACTED
Tue Apr 26 10:35:06 CEST 2005
Hi,
> rpc:call( Node, gen_server, start_link, [{local,server_name},
> module_name,
> [],
> []] ).
This call will link the gen_server with the rex process on Node, since it's inside it that the gen_server:start_link is evaluated.
You will have to do it manually by sending self() as an argument and handle it in init().
Another way would involve a normally spawn_linked proxy process that would stand for the real gen_server, but I'm not sure if it's a good idea.
regards,
Vlad
More information about the erlang-questions
mailing list