Determining if process is alive on a different node

Per Hedeland hedeland@REDACTED
Tue Aug 16 09:42:38 CEST 2005


"Ulf Wiger (AL/EAB)" <ulf.wiger@REDACTED> wrote:
>
>Klacke is right, as this simple example shows:

Well, the mechanism does cover that "simple example" (and that's
basically what it was designed to do), but for anyone that really needs
to rely on old Pids never matching new processes, it's probably a good
idea to make sure what guarantees are actually provided - e.g. when the
remote host does a full reboot, or the Pids are "very" old.

In the old days the "creation number" was only two bits, with state
maintained by epmd - and looking at current epmd source, it seems that
*it* does the same today (actually only 1..3 is used). But maybe there
is more magic on the Erlang node side these days, I haven't checked.

--Per Hedeland



More information about the erlang-questions mailing list