aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/dist.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-10-30 19:09:14 +0100
committerSverker Eriksson <[email protected]>2015-11-02 17:31:14 +0100
commit1eeb980a3591b51f12363543b2ac9b0260ebd870 (patch)
treee931c605670377b5aa4c4dea22f4c5c1f129f699 /erts/emulator/beam/dist.c
parent15af6b28beded3b253860b4ea5a7debe2c662674 (diff)
downloadotp-1eeb980a3591b51f12363543b2ac9b0260ebd870.tar.gz
otp-1eeb980a3591b51f12363543b2ac9b0260ebd870.tar.bz2
otp-1eeb980a3591b51f12363543b2ac9b0260ebd870.zip
erts: Remove ERTS_PSD_DIST_ENTRY
Not needed as it is always set to erts_this_dist_entry (on net_kernel).
Diffstat (limited to 'erts/emulator/beam/dist.c')
-rw-r--r--erts/emulator/beam/dist.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c
index 23897a49ae..5a0f8388f8 100644
--- a/erts/emulator/beam/dist.c
+++ b/erts/emulator/beam/dist.c
@@ -2650,13 +2650,8 @@ BIF_RETTYPE setnode_2(BIF_ALIST_2)
if (!net_kernel)
goto error;
- /* By setting dist_entry==erts_this_dist_entry and DISTRIBUTION on
- net_kernel do_net_exist will be called when net_kernel
- is terminated !! */
- (void) ERTS_PROC_SET_DIST_ENTRY(net_kernel,
- ERTS_PROC_LOCK_MAIN,
- erts_this_dist_entry);
- erts_refc_inc(&erts_this_dist_entry->refc, 2);
+ /* By setting F_DISTRIBUTION on net_kernel,
+ * do_net_exist will be called when net_kernel is terminated !! */
net_kernel->flags |= F_DISTRIBUTION;
if (net_kernel != BIF_P)