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

Frank Muller frank.muller.erl@REDACTED
Tue Dec 20 22:16:07 CET 2016


Hi,

I’m seeing this intermittent error when stopping my Erlang node with
init:stop().

2016-12-20 22:00:11 =SUPERVISOR REPORT====
    Supervisor: {local,server_sock_sup}
    Context:    shutdown_error
    Reason:     noproc
    Offender:
  [{nb_children,1},{name,t3_router},{mfargs,{client_sock,start_link,[]}},{restart_type,temporary},{shutdown,5000},{child_type,worker}]

2016-12-20 22:00:11.069 [error] <0.162.0> Supervisor server_sock_sup had
child client_sock started with client_sock start_link() at undefined exit
with reason noproc in context shutdown_error

The client_sock is a gen_server which traps exit.
It’s supervised by server_sock_sup as a simple_one_for_one.

I’ve also tried without trapping exit in client_sock and was also able to
notice this error.

Can someone please explain me what I’m doing wrong?

/Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161220/5c0eb619/attachment.htm>


More information about the erlang-questions mailing list