aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-10-20 15:32:33 +0200
committerSverker Eriksson <[email protected]>2016-10-20 15:32:33 +0200
commitad2c3de34f2452378b5c550ddc0795a1fe6efe4c (patch)
tree16c2f83f4ed526ecfc83883f1265f4abc2f5d257 /lib
parent9a7f521f9d6eba398af2e703863f9975911085a4 (diff)
parente4cba54c5c6fc2b099485947ca8fca09a3ad26c9 (diff)
downloadotp-ad2c3de34f2452378b5c550ddc0795a1fe6efe4c.tar.gz
otp-ad2c3de34f2452378b5c550ddc0795a1fe6efe4c.tar.bz2
otp-ad2c3de34f2452378b5c550ddc0795a1fe6efe4c.zip
Merge branch 'sverker/ei_connect_xinit/PR-1202/OTP-13981' into maint
* sverker/ei_connect_xinit/PR-1202: use only two low bits of creation
Diffstat (limited to 'lib')
-rw-r--r--lib/erl_interface/src/connect/ei_connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c
index 624100ad49..c193fd804a 100644
--- a/lib/erl_interface/src/connect/ei_connect.c
+++ b/lib/erl_interface/src/connect/ei_connect.c
@@ -423,7 +423,7 @@ int ei_connect_xinit(ei_cnode* ec, const char *thishostname,
}
#endif /* _REENTRANT */
- ec->creation = creation;
+ ec->creation = creation & 0x3; /* 2 bits */
if (cookie) {
if (strlen(cookie) >= sizeof(ec->ei_connect_cookie)) {
@@ -462,7 +462,7 @@ int ei_connect_xinit(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 = creation & 0x3; /* 2 bits */
if ((dbglevel = getenv("EI_TRACELEVEL")) != NULL ||
(dbglevel = getenv("ERL_DEBUG_DIST")) != NULL)