File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -690,12 +690,12 @@ await_cluster_recovery(Condition) ->
690690 ok .
691691
692692run_outside_applications (Fun , WaitForExistingProcess ) ->
693- spawn (fun () ->
694- % % If our group leader is inside an application we are about
695- % % to stop, application:stop/1 does not return.
696- group_leader (whereis (init ), self ()),
697- register_outside_app_process (Fun , WaitForExistingProcess )
698- end ).
693+ spawn_link (fun () ->
694+ % % If our group leader is inside an application we are about
695+ % % to stop, application:stop/1 does not return.
696+ group_leader (whereis (init ), self ()),
697+ register_outside_app_process (Fun , WaitForExistingProcess )
698+ end ).
699699
700700register_outside_app_process (Fun , WaitForExistingProcess ) ->
701701 % % Ensure only one such process at a time, the exit(badarg) is
You can’t perform that action at this time.
0 commit comments