Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
2833-erl_interface-Avoid-0-creation-value.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2833-erl_interface-Avoid-0-creation-value.patch of Package erlang
From 836c6ab81c5d4ab49005fc914bede0314d2eec4f Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Mon, 1 Nov 2021 23:23:35 +0100 Subject: [PATCH 3/8] erl_interface: Avoid 0-creation value as well as old tiny values 1,2,3. --- lib/erl_interface/src/connect/ei_connect.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c index c733ea348c..a6ce726331 100644 --- a/lib/erl_interface/src/connect/ei_connect.c +++ b/lib/erl_interface/src/connect/ei_connect.c @@ -919,6 +919,10 @@ int ei_connect_xinit_ussi(ei_cnode* ec, const char *thishostname, } ec->creation = creation; + if (ec->creation < 4) { + /* Avoid invalid 0-creation as well as old tiny 1,2,3 values. */ + ec->creation += 0xE10000; + } ec->pidsn = 0; if (cookie) { @@ -956,7 +960,7 @@ int ei_connect_xinit_ussi(ei_cnode* ec, const char *thishostname, strcpy(ec->self.node, thisnodename); ec->self.num = 0; ec->self.serial = 0; - ec->self.creation = creation; + ec->self.creation = ec->creation; } else { /* dynamic name */ -- 2.31.1
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