Monitoring of nodes..
Ulf Wiger
etxuwig@REDACTED
Wed May 17 10:38:55 CEST 2000
On Wed, 17 May 2000, Martin Bjorklund wrote:
>Geoff Wong <geoff@REDACTED> wrote:
>
>> (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
It's probably better to use flush() in the shell. That way, you avoid
binding a variable.
/Uffe
--
Ulf Wiger, Chief Designer AXD 301 <ulf.wiger@REDACTED>
Ericsson Telecom AB tfn: +46 8 719 81 95
Varuvägen 9, Älvsjö mob: +46 70 519 81 95
S-126 25 Stockholm, Sweden fax: +46 8 719 43 44
More information about the erlang-questions
mailing list