Monitoring of nodes..

Ulf Wiger <>
Wed May 17 10:38:55 CEST 2000


On Wed, 17 May 2000, Martin Bjorklund wrote:

>Geoff Wong <> wrote:
>
>> ()3> net_kernel:monitor_nodes(true).
>> ok
>> ()4> receive A -> A end.
>> {}
>> ()5> receive A -> A end.
>>
>> I never get a nodedown when I take down  (after taking
>> down ).
>
>In this case it's because A is bound to {nodedown, }, so the
>receive just hangs, waiting for another nodedown from 



It's probably better to use flush() in the shell. That way, you avoid
binding a variable.


/Uffe
-- 
Ulf Wiger, Chief Designer AXD 301         <>
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