aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_dist_test_lib.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-10-22 16:54:28 +0200
committerLukas Larsson <[email protected]>2018-11-29 09:57:08 +0100
commitc114cfdbc7cac327bd132b4eeada097a0cd7a5df (patch)
tree6cf66e61aad5c4773df93c7250b737731caad7ed /lib/ssl/test/ssl_dist_test_lib.erl
parentfb821d422c6fc187f2a23805c559bdc9105eeb59 (diff)
downloadotp-c114cfdbc7cac327bd132b4eeada097a0cd7a5df.tar.gz
otp-c114cfdbc7cac327bd132b4eeada097a0cd7a5df.tar.bz2
otp-c114cfdbc7cac327bd132b4eeada097a0cd7a5df.zip
ssl: Link to tstsrvr to group_leader in test
If the check_ssl_node_up call is made by an rpc:call the calling process will terminate and thus the tstsrvr loop would terminate too early. We instead link with the group leader so that the look still terminates, but only if the parent node does.
Diffstat (limited to 'lib/ssl/test/ssl_dist_test_lib.erl')
-rw-r--r--lib/ssl/test/ssl_dist_test_lib.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssl/test/ssl_dist_test_lib.erl b/lib/ssl/test/ssl_dist_test_lib.erl
index 1b9c853fc4..1511906654 100644
--- a/lib/ssl/test/ssl_dist_test_lib.erl
+++ b/lib/ssl/test/ssl_dist_test_lib.erl
@@ -179,8 +179,9 @@ check_ssl_node_up(Socket, Name, Bin) ->
Parent = self(),
Go = make_ref(),
%% Spawn connection handler on test server side
- Pid = spawn_link(
+ Pid = spawn(
fun () ->
+ link(group_leader()),
receive Go -> ok end,
process_flag(trap_exit, true),
tstsrvr_con_loop(Name, Socket, Parent)