diff options
author | Rickard Green <[email protected]> | 2018-09-05 16:04:51 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2018-09-05 16:30:19 +0200 |
commit | a31216200bdee2c04b3fb3ae5e26607674715c8a (patch) | |
tree | 26ad8d59b3af89be1f907d08bd605641b2f7037e /erts/emulator/beam/dist.c | |
parent | f7012b7a731924193cf05fc77b103e89bd0fcbfb (diff) | |
download | otp-a31216200bdee2c04b3fb3ae5e26607674715c8a.tar.gz otp-a31216200bdee2c04b3fb3ae5e26607674715c8a.tar.bz2 otp-a31216200bdee2c04b3fb3ae5e26607674715c8a.zip |
Prevent inconsistent node lists
If net_kernel "forgets" to abort a connection (as it currently might),
the garbage collection of a distribution entry could cause node lists
to enter an inconsistent state.
Diffstat (limited to 'erts/emulator/beam/dist.c')
-rw-r--r-- | erts/emulator/beam/dist.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c index 70474898b2..16c4d689a5 100644 --- a/erts/emulator/beam/dist.c +++ b/erts/emulator/beam/dist.c @@ -3628,6 +3628,12 @@ static Sint abort_connection(DistEntry* dep, Uint32 conn_id) return 0; } +Sint +erts_abort_connection(DistEntry *dep, Uint32 conn_id) +{ + return abort_connection(dep, conn_id); +} + BIF_RETTYPE erts_internal_abort_connection_2(BIF_ALIST_2) { DistEntry* dep; |