Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
8031-kernel-Let-net_kernel-allow-1-ignore-dupli...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 8031-kernel-Let-net_kernel-allow-1-ignore-duplicate-node-.patch of Package erlang
From 542853c9549c2bf666f595b9d1c3bb466c4b67d8 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Mon, 30 Sep 2024 14:29:13 +0200 Subject: [PATCH 1/2] kernel: Let net_kernel:allow/1 ignore duplicate node names --- lib/kernel/src/net_kernel.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl index 83a23ba321..d65ce22c2f 100644 --- a/lib/kernel/src/net_kernel.erl +++ b/lib/kernel/src/net_kernel.erl @@ -1193,8 +1193,8 @@ handle_call({spawn_opt,M,F,A,O,L,Gleader},{From,Tag},State) when is_pid(From) -> handle_call({allow, Nodes}, From, State) -> case all_atoms(Nodes) of true -> - Allowed = State#state.allowed, - async_reply({reply,ok,State#state{allowed = Allowed ++ Nodes}}, + Allowed = lists:uniq(State#state.allowed ++ Nodes), + async_reply({reply,ok,State#state{allowed = Allowed}}, From); false -> async_reply({reply,error,State}, From) -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor