aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-12-06 19:51:37 +0100
committerRickard Green <[email protected]>2011-12-06 19:53:14 +0100
commit6d5f040677687eca9ddfc52f329f8ad8655129ea (patch)
tree316ba84241b326dc088c7bb407a5e9f97cace1af
parent8f7f2ba4ec4a94a414cd33ab5ad9486784e6f674 (diff)
downloadotp-6d5f040677687eca9ddfc52f329f8ad8655129ea.tar.gz
otp-6d5f040677687eca9ddfc52f329f8ad8655129ea.tar.bz2
otp-6d5f040677687eca9ddfc52f329f8ad8655129ea.zip
Unlink test-proc instead of ensuring that it has died before stopping node
Unlink the test-proc instead of monitoring it and waiting for it to terminate before stopping the node. This since an unlink is faster, simpler and in this case more stable.
-rw-r--r--erts/emulator/test/scheduler_SUITE.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/erts/emulator/test/scheduler_SUITE.erl b/erts/emulator/test/scheduler_SUITE.erl
index c7ec3cbe41..8931562828 100644
--- a/erts/emulator/test/scheduler_SUITE.erl
+++ b/erts/emulator/test/scheduler_SUITE.erl
@@ -527,14 +527,10 @@ bindings(Node, BindType) ->
BindType})),
Parent ! {Ref, Res}
end),
- Mon = erlang:monitor(process, Pid),
- receive
- {'DOWN', Mon, _, _, _} ->
- ok
- end,
receive
{Ref, Res} ->
?t:format("~p: ~p~n", [BindType, Res]),
+ unlink(Pid),
Res
end.