aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-12-11 19:41:09 +0100
committerSverker Eriksson <[email protected]>2015-12-11 19:41:09 +0100
commita8eb7811370127e838ab9a27c33e518a8bfa1272 (patch)
tree3746f73dfc0f40ff457ec455a71a138a0bc57e22
parent63ea41015e6aa28415c3446b8dee5d5208cdeb85 (diff)
parenteda21ee8a6b87a7ec03822e255d82827db1aee12 (diff)
downloadotp-a8eb7811370127e838ab9a27c33e518a8bfa1272.tar.gz
otp-a8eb7811370127e838ab9a27c33e518a8bfa1272.tar.bz2
otp-a8eb7811370127e838ab9a27c33e518a8bfa1272.zip
Merge branch 'sverk/setnode-rename-bug/OTP-13076' into maint
* sverk/setnode-rename-bug/OTP-13076: erts: Fix correct node name for DTRACE
-rw-r--r--erts/emulator/beam/erl_node_tables.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_node_tables.c b/erts/emulator/beam/erl_node_tables.c
index a7d0511bf9..707de39556 100644
--- a/erts/emulator/beam/erl_node_tables.c
+++ b/erts/emulator/beam/erl_node_tables.c
@@ -752,6 +752,10 @@ erts_set_this_node(Eterm sysname, Uint creation)
erts_this_dist_entry = erts_this_node->dist_entry;
erts_refc_inc(&erts_this_dist_entry->refc, 2);
+
+ erts_this_node_sysname = erts_this_node_sysname_BUFFER;
+ erts_snprintf(erts_this_node_sysname, sizeof(erts_this_node_sysname_BUFFER),
+ "%T", sysname);
}
Uint