aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/inet_int.hrl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-05-27 14:23:48 +0200
committerRaimo Niskanen <[email protected]>2010-06-01 12:51:59 +0200
commit39e563a0e0a8e3a71fec8f5a1f5d4dfb0a3425f7 (patch)
treecaccb806d3ccd91a9844a499fc4fe8c9e97bfda6 /lib/kernel/src/inet_int.hrl
parent256fb889b337781d27642471f16a5c7e0a988d8c (diff)
downloadotp-39e563a0e0a8e3a71fec8f5a1f5d4dfb0a3425f7.tar.gz
otp-39e563a0e0a8e3a71fec8f5a1f5d4dfb0a3425f7.tar.bz2
otp-39e563a0e0a8e3a71fec8f5a1f5d4dfb0a3425f7.zip
dist_utils: Eliminate crash when list_to_existing_atom/1 fails
In the following scenario list_to_existing_atom/1 may crash during handshake: Start a node in one window: erl -sname adam@localhost Start another node in another window: erl -sname bertil In this node, ping the first node (use the actual hostname in the command): net:ping(adam@hostname). There will be an error report similar to: =ERROR REPORT==== 27-May-2010::15:03:14 === Error in process <0.40.0> on node 'bertil@hostname' with exit value: {badarg,[{erlang,list_to_existing_atom, ["adam@localhost"]},{dist_util,recv_challenge,1},{dist_util,handshake_we_started,1}]} Eliminate the crash and the error report by catching the call to list_to_existing_atom/1 and do a clean shutdown if it fails.
Diffstat (limited to 'lib/kernel/src/inet_int.hrl')
0 files changed, 0 insertions, 0 deletions