Skip to content

Commit

Permalink
use spawn_link instead of spawn for export/1 related calls
Browse files Browse the repository at this point in the history
  • Loading branch information
lucioleKi committed Jul 25, 2024
1 parent d1fca18 commit 95ea123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tools/src/cover.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 95ea123

Please sign in to comment.