[erlang-questions] simple_one_for_one supervisor: strange error when stopping node

Brujo Benavides fernando.benavides@REDACTED
Wed Dec 21 18:52:54 CET 2016


Frank:

	Maybe it’s just wording, but to clarify just in case:
	Starting children from within a supervisor doesn’t guarantee they’re linked.
	Linking to its parent supervisor is a responsibility of the child process.
	In your case, if client_sock:start_link/0 doesn’t actually start and link a process to its caller, then your supervisor won’t do it for you :)

	Cheers!

> On Dec 21, 2016, at 14:47, Frank Muller <frank.muller.erl@REDACTED> wrote:
> 
> Thank you Alex.
> 
> Forgot to mention that I'm using 17.5 on Linux. 
> I'm sure all children are linked because they're started using the supervisor. 
> 
> I'll try to narrow that my app and double check. 
> 
> /Frank
> 
> Le mer. 21 déc. 2016 à 18:39, Alex S. <alex0player@REDACTED <mailto:alex0player@REDACTED>> a écrit :
> As a followup, the following insights from OTP 19’s source code:
> 
> 	    %% If a naughty child did unlink and the child dies before
> 	    %% monitor the result will be that shutdown/2 receives a 
> 	    %% 'DOWN'-message with reason noproc.
> 	    %% If the child should die after the unlink there
> 	    %% will be a 'DOWN'-message with a correct reason
> 	    %% that will be handled in shutdown/2. 
> 
> 
>> 21 дек. 2016 г., в 19:57, Frank Muller <frank.muller.erl@REDACTED <mailto:frank.muller.erl@REDACTED>> написал(а):
>> 
> 
>> Spent another day fighting with this, no luck.
>> 
>> Even after applying this trick from angner’s repo, I’m still seeing these error message: 
>> https://github.com/agner/agner/blob/master/src/agner_app.erl#L17-L17 <https://github.com/agner/agner/blob/master/src/agner_app.erl#L17-L17>
>> 
>> Can someone at least (OTP guys) explain me the « why » i’m getting these messages please?
>> 
>> /Frank
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161221/abd99671/attachment.htm>


More information about the erlang-questions mailing list