aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2019-06-17 11:31:01 +0200
committerRickard Green <[email protected]>2019-06-17 11:31:01 +0200
commitdfebec217a33b0171cb6586df32436e581740719 (patch)
tree3e8db9565604b4ecdfb48603b72af2088d9c911d
parent7fe7fa3dde556b5b92522f8279d465bb52baf1f6 (diff)
parent8e60fe7df9fa2ceaa4636495a9b75d495dc336e9 (diff)
downloadotp-dfebec217a33b0171cb6586df32436e581740719.tar.gz
otp-dfebec217a33b0171cb6586df32436e581740719.tar.bz2
otp-dfebec217a33b0171cb6586df32436e581740719.zip
Merge branch 'rickard/dist-exit2/20/OTP-15867' into rickard/dist-exit2/21/OTP-15867
* rickard/dist-exit2/20/OTP-15867: Don't disconnect on remote exit/2 with old incarnation as recipient
-rw-r--r--erts/emulator/beam/dist.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c
index 0633bff3c2..bbe2fc31f3 100644
--- a/erts/emulator/beam/dist.c
+++ b/erts/emulator/beam/dist.c
@@ -1713,9 +1713,17 @@ int erts_net_message(Port *prt,
token = tuple[4];
reason = tuple[5];
}
- if (is_not_pid(from) || is_not_internal_pid(to)) {
+ if (is_not_pid(from)) {
goto invalid_message;
}
+ if (is_not_internal_pid(to)) {
+ if (is_external_pid(to)) {
+ DistEntry *dep = external_pid_dist_entry(to);
+ if (dep == erts_this_dist_entry)
+ break; /* Old incarnation of this node... */
+ }
+ goto invalid_message;
+ }
erts_proc_sig_send_exit(NULL, from, to, reason, token, 0);
break;