[erlang-questions] terminate supervisor from it's child process
Vance Shipley
vances@REDACTED
Thu Feb 14 18:09:14 CET 2019
On Thu, Feb 14, 2019 at 2:40 PM block.rxckin.beats@REDACTED
<block.rxckin.beats@REDACTED> wrote:
> > No, I meant:
> > udp_sup
> > -> udp_worker
> > -> proto_sup
> > -> dtls_woker
> > -> stun_worker
> > -> srtp_worker
>
> in that case,
> udp_worker can terminate proto_sup
> but who terminate udp_sup ?
No, udp_sup terminates proto_sup. Use a one_for_all strategy on
udp_sup. When udp_worker exits all the others are terminated by the
supervisors.
--
-Vance
More information about the erlang-questions
mailing list