Monitoring of nodes..

Martin Bjorklund mbj@REDACTED
Wed May 17 09:03:15 CEST 2000


Geoff Wong <geoff@REDACTED> wrote:

> Hmm, I gave my example incorrectly. Basically I was
> trying to indicate that net_kernel:monitor_nodes(true)
> gives the same behaviour as Pekka was explaining  with 
> the bif monitor_node.
> 
> erl -sname fud
> Erlang (BEAM) emulator version 4.9.1 [source]
> 
> Eshell V4.9.1  (abort with ^G)
> (fud@REDACTED)1> net_adm:ping(y@REDACTED).
> pong
> (fud@REDACTED)2> net_adm:ping(x@REDACTED).
> pong
> (fud@REDACTED)3> net_kernel:monitor_nodes(true).
> ok
> (fud@REDACTED)4> receive A -> A end.
> {nodedown,x@REDACTED}
> (fud@REDACTED)5> receive A -> A end.
>
> I never get a nodedown when I take down y@REDACTED (after taking
> down x@REDACTED).

In this case it's because A is bound to {nodedown, x@REDACTED}, so the
receive just hangs, waiting for another nodedown from x@REDACTED

Which OS are you running?  Do you which OS pekka is running?



/martin



More information about the erlang-questions mailing list