Determining if process is alive on a different node

Joel Reymont joelr1@REDACTED
Mon Aug 15 21:21:59 CEST 2005


Serge's use of use of node(Pid) made me thing that the following  
would work:

rcp:call(node(pid), erlang, is_process_alive, [Pid]).

Any drawbacks?

     Thanks, Joel

On Aug 15, 2005, at 9:06 PM, Serge Aleynikov wrote:

> node(Pid) returns the node that owns the Pid.
>
> Node = node(),
> case node(Pid) of
> Node -> local;
> _    -> remote
> end.




More information about the erlang-questions mailing list