From 6d5f040677687eca9ddfc52f329f8ad8655129ea Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Tue, 6 Dec 2011 19:51:37 +0100 Subject: 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. --- erts/emulator/test/scheduler_SUITE.erl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'erts/emulator/test/scheduler_SUITE.erl') 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. -- cgit v1.2.3