From c4759bc60c8e5db27c070b9e826ddc0f9626b094 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Tue, 10 Jul 2018 17:51:23 +0200 Subject: kernel: Fix net_kernel:connect_node/1 to local node to be no-op and return true as it always has before OTP-21.0. --- lib/kernel/doc/src/net_kernel.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/kernel/doc/src') diff --git a/lib/kernel/doc/src/net_kernel.xml b/lib/kernel/doc/src/net_kernel.xml index a30d28d55a..d3bd7365e2 100644 --- a/lib/kernel/doc/src/net_kernel.xml +++ b/lib/kernel/doc/src/net_kernel.xml @@ -102,8 +102,10 @@ $ erl -sname foobar Establish a connection to a node.

Establishes a connection to Node. Returns - true if successful, false if not, and ignored - if the local node is not alive.

+ true if a connection was established or was already + established or if Node is the local node + itself. Returns false if the connection attempt failed, and + ignored if the local node is not alive.

-- cgit v1.2.3