From 95ea1239b807e2a2a8646965a6ee1035fcc6a3f5 Mon Sep 17 00:00:00 2001 From: lucioleKi Date: Thu, 25 Jul 2024 10:47:24 +0200 Subject: [PATCH] use spawn_link instead of spawn for export/1 related calls --- lib/tools/src/cover.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tools/src/cover.erl b/lib/tools/src/cover.erl index 8827a1064701..f0160b9e022b 100644 --- a/lib/tools/src/cover.erl +++ b/lib/tools/src/cover.erl @@ -1259,7 +1259,7 @@ main_process_loop(State) -> ?MODULE:main_process_loop(S); {From, {export,OutFile,Module}} -> - spawn(fun() -> + spawn_link(fun() -> ?SPAWN_DBG(export,{OutFile, Module}), do_export(Module, OutFile, From, State) end), @@ -1671,7 +1671,7 @@ remote_start(MainNode) -> case whereis(?SERVER) of undefined -> Starter = self(), - Pid = spawn(fun() -> + Pid = spawn_link(fun() -> ?SPAWN_DBG(remote_start,{MainNode}), init_remote(Starter,MainNode) end),