[erlang-questions] The most efficient way to make sure a remote process is alive

Logan, Martin MARTIN.LOGAN@REDACTED
Fri Jul 30 23:17:05 CEST 2010


NICE! That is what I was looking for. I thought I had the RPC module memorized and so I never even looked for this function. Thanks. 

-----Original Message-----
From: erlang-questions@REDACTED [mailto:erlang-questions@REDACTED] On Behalf Of Evgeniy Khramtsov
Sent: Thursday, July 29, 2010 11:02 PM
To: erlang-questions@REDACTED
Subject: Re: [erlang-questions] The most efficient way to make sure a remote process is alive

30.07.2010 02:22, Logan, Martin wrote:
> I am looking for the absolute most efficient way to make sure a process, referenced by a pid I have, is alive. The process my pid references could of course be local or remote. There are lots of ways but I want the most efficient and I can't assume any application level code - this must be generic. Thoughts?
>
> Cheers,
> Martin
>
>    

rpc:pinfo/1,2. If the pid is local, rpc transforms into apply/3, so it 
is pretty efficient.

-- 
Regards,
Evgeniy Khramtsov, ProcessOne.
xmpp:xram@REDACTED


________________________________________________________________
erlang-questions (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED



More information about the erlang-questions mailing list