aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dialyzer')
-rw-r--r--lib/dialyzer/src/dialyzer_callgraph.erl4
-rw-r--r--lib/dialyzer/src/dialyzer_coordinator.erl2
-rw-r--r--lib/dialyzer/src/dialyzer_timing.erl2
-rw-r--r--lib/dialyzer/src/dialyzer_worker.erl2
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/dialyzer/src/dialyzer_callgraph.erl b/lib/dialyzer/src/dialyzer_callgraph.erl
index 80f2c48676..0384160abc 100644
--- a/lib/dialyzer/src/dialyzer_callgraph.erl
+++ b/lib/dialyzer/src/dialyzer_callgraph.erl
@@ -724,7 +724,7 @@ put_behaviour_api_calls(Calls,
new_race_data_server() ->
- spawn(fun() -> race_data_server_loop(#race_data_state{}) end).
+ spawn_link(fun() -> race_data_server_loop(#race_data_state{}) end).
race_data_server_loop(State) ->
receive
@@ -770,7 +770,7 @@ race_data_server_handle_call(Query,
beh_api_calls = BehApiCalls}
= State) ->
case Query of
- dup -> spawn(fun() -> race_data_server_loop(State) end);
+ dup -> spawn_link(fun() -> race_data_server_loop(State) end);
get_race_code -> RaceCode;
get_public_tables -> PublicTables;
get_named_tables -> NamedTables;
diff --git a/lib/dialyzer/src/dialyzer_coordinator.erl b/lib/dialyzer/src/dialyzer_coordinator.erl
index f4f1fda8fd..c417b45717 100644
--- a/lib/dialyzer/src/dialyzer_coordinator.erl
+++ b/lib/dialyzer/src/dialyzer_coordinator.erl
@@ -109,7 +109,7 @@
-spec start(mode(), servers()) -> coordinator().
start(Mode, Servers) ->
- {ok, Pid} = gen_server:start(?MODULE, {self(), Mode, Servers}, []),
+ {ok, Pid} = gen_server:start_link(?MODULE, {self(), Mode, Servers}, []),
Pid.
-spec scc_spawn(scc() | module(), coordinator()) -> ok.
diff --git a/lib/dialyzer/src/dialyzer_timing.erl b/lib/dialyzer/src/dialyzer_timing.erl
index 368c1715ce..dc4d522c2f 100644
--- a/lib/dialyzer/src/dialyzer_timing.erl
+++ b/lib/dialyzer/src/dialyzer_timing.erl
@@ -31,7 +31,7 @@
-spec init(boolean()) -> ok.
init(Active) ->
- Pid = spawn(fun() -> loop_init(Active) end),
+ Pid = spawn_link(fun() -> loop_init(Active) end),
case whereis(?MODULE) of
undefined -> ok;
_ -> unregister(?MODULE)
diff --git a/lib/dialyzer/src/dialyzer_worker.erl b/lib/dialyzer/src/dialyzer_worker.erl
index 4e967a18df..0ef30cf940 100644
--- a/lib/dialyzer/src/dialyzer_worker.erl
+++ b/lib/dialyzer/src/dialyzer_worker.erl
@@ -63,7 +63,7 @@ launch(Mode, Job, Servers, Coordinator) ->
X when X =:= 'typesig'; X =:= 'dataflow' -> initializing;
X when X =:= 'compile'; X =:= 'warnings' -> running
end,
- spawn(fun() -> loop(InitState, State) end).
+ spawn_link(fun() -> loop(InitState, State) end).
%%--------------------------------------------------------------------