aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-12-08 18:36:25 +0100
committerSverker Eriksson <[email protected]>2016-12-08 18:36:25 +0100
commita07fc6fbcdf270e29332cd2556511b5f04e3d476 (patch)
tree15e5d4fdbf1f6d99a157c473b8913b3e3c01dbc8 /erts/emulator
parentb47d104994c6f11301f23b0675ed5f06f3e25922 (diff)
downloadotp-a07fc6fbcdf270e29332cd2556511b5f04e3d476.tar.gz
otp-a07fc6fbcdf270e29332cd2556511b5f04e3d476.tar.bz2
otp-a07fc6fbcdf270e29332cd2556511b5f04e3d476.zip
erts: Fix hanging race in code_SUITE:versions
Monitor first, then ask to terminate.
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/test/code_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/test/code_SUITE.erl b/erts/emulator/test/code_SUITE.erl
index 34515efa3d..3ee14f2d1c 100644
--- a/erts/emulator/test/code_SUITE.erl
+++ b/erts/emulator/test/code_SUITE.erl
@@ -66,9 +66,9 @@ versions(Config) when is_list(Config) ->
2 = versions:version(),
%% Kill processes, unload code.
- P1 ! P2 ! done,
_ = monitor(process, P1),
_ = monitor(process, P2),
+ P1 ! P2 ! done,
receive
{'DOWN',_,process,P1,normal} -> ok
end,