[erlang-questions] otp application killing all spawned children, also ones not linked?

Bart van Deenen <>
Fri May 11 12:27:32 CEST 2012


Thanks!!!

I've learned a lot tracking this problem.

Bart

On 05/11/2012 12:12 PM, Slava Yurin wrote:
> Dirty hack for processes don't kill by application:stop/1:
> diff --git a/par.erl b/par.erl
> index f2232c2..207b5c7 100644
> --- a/par.erl
> +++ b/par.erl
> @@ -41,6 +41,7 @@ code_change(_OldVsn, State, _Extra) -> {ok, State}.
>  worker() ->
>         register(par_worker, self()),
> +       group_leader(whereis(init), self()),
>         receive Any -> io:format("~p Parent worker received ~p~n",
>         [self(), Any]) end.




More information about the erlang-questions mailing list