<div dir="ltr"><span style="font-size:13px">Hi</span><div style="font-size:13px"><br></div><div style="font-size:13px">I am fairly new to erlang and have a question regarding properly stopping a supervisor that resides directly under another supervisor.</div><div style="font-size:13px"><br></div><div style="font-size:13px">My application consist of a top level supervisor (my_supersup) which is a simple_one_for_one supervisor of other supervisors my_sup. Each my_sup supervises a gen_server, serv and another supervisor that is also a simple_one_for_one supervisor of some workers</div><div style="font-size:13px"><br></div><div style="font-size:13px">my_supersup </div><div style="font-size:13px">(simple_one_for_one, transient)</div><div style="font-size:13px">|</div><div style="font-size:13px">|_______ ...</div><div style="font-size:13px">|</div><div style="font-size:13px">my_sup (one_for_all, transient)</div><div style="font-size:13px">|________________</div><div style="font-size:13px">|                            |</div><div style="font-size:13px">|                           serv</div><div style="font-size:13px">worker_sup           </div><div style="font-size:13px">(simple_one_for_one, transient)<br></div><div style="font-size:13px">|___________ ...</div><div style="font-size:13px">|              |</div><div style="font-size:13px">w1          w2</div><div style="font-size:13px"><br></div><div style="font-size:13px">How do shutdown an instance of my_sup gracefully without killing it. At present I can do it with supervisor:terminate_child and supervisor:delete_child but I would like them to shutdown rather than be killed if possible?</div><div style="font-size:13px"><br></div><div style="font-size:13px">Thanks in advance.</div></div>