a bug in erlang node after an error at another node

后端 未结 1 1032
猫巷女王i
猫巷女王i 2021-01-26 11:33

i created 2 erlang nodes in the same Windows machine with two cmd windows:\'unclient@MYPC\' and \'unserveur@MYPC\' , the server code is very simple :

-module(ser         


        
相关标签:
1条回答
  • 2021-01-26 12:15

    This happens because the EXIT message is sent to any process that is linked to the server process, which is not necessarily the same process that sent the message.

    It works when you run it in the shell, since the shell process gets linked to the server process, and the shell process is also the one that calls the inverse function. However, when you make an RPC call, the inverse function is called from a different process.

    Try making the RPC call from the client, and then running flush(). in the shell of the server node, and you should see the EXIT message.

    0 讨论(0)
提交回复
热议问题