<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3526.800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The attached code links to pids of nodes that
are in the same machine and I don't know why I receive a noconnection signal
when the LAN cable is disconnected. This does no happen when running the code
with the LAN cable disconnected and connecting/disconnecting it
later.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>If someone wants to give a try, I send a code
to test this situation and y</FONT><FONT face=Arial size=2>ou should modify
on node1.erl the blue text line below:</FONT></DIV>
<DIV><FONT face=Arial size=2>{node2Pid, <FONT color=#0000ff>node2@design</FONT>}
! {self()},</FONT></DIV>
<DIV><FONT face=Arial size=2>with the corresponding machine name where you will
run it</FONT><FONT face=Arial size=2>.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><STRONG>On the same machine do the
following:</STRONG></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>1 - "erl -sname node2"</FONT></DIV>
<DIV><FONT face=Arial size=2>2 - "node2:start()."</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>2 - "erl -sname node1"</FONT></DIV>
<DIV><FONT face=Arial size=2>3 - "node1:start()."</FONT></DIV></FONT><FONT
face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2>4 - The pid is linked and a message is shown
on node1.</FONT></DIV>
<DIV><FONT face=Arial size=2>5 - node2Pid shows a message every 1 sec while
checking the queue message</FONT></DIV>
<DIV><FONT face=Arial size=2>6 - node1 process loops checking the queue message
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>7 - Disconnect LAN cable</FONT></DIV>
<DIV><FONT color=#ff0000 face=Arial size=2>8 - node2Pid receives a noconnection
signal</FONT></DIV>
<DIV><FONT color=#ff0000 face=Arial size=2>9 - node1 process receives an
{'EXIT',Pid,noconnection}</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- When linking Pids of different nodes that are in
the same machine why do I receive a "noconnection" signal?</FONT></DIV>
<DIV><FONT face=Arial size=2>- Having the LAN cable disconnected
and doing steps 1..6 8..9, if I connect/disconnect the LAN cable the
"noconnection" signal is never received (correct behaviour). </FONT></DIV>
<DIV><FONT face=Arial size=2>- If in the source code I do not use
"process_flag(trap_exit, true)," the processes </FONT><FONT
face=Arial size=2>terminate, why is this happenning as no kill signal is
sent?</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2>Eduardo Figoli</FONT></DIV>
<DIV><FONT face=Arial size=2>INSwitch Solutions</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></BODY></HTML>