<div>
                    Hi,
                </div><div><br></div><div>I'd like to know is it possible to have a terminate callback that clean up things when the supervisor stops?</div><div><br></div><div>Specifically I want to write an application which starts a supervisor, and add a handler to some existing gen_event by calling gen_event:add_handler() on init(), and I want to call gen_event:remove_handler() when the application is stop. Is there an easy way to do it?</div><div><br></div><div>Thanks </div>
                <div><div><br></div><div>-- </div><div>Seven Du</div><div><span style="font-size: 10pt; ">http://www.freeswitch.org.cn</span></div><div>http://about.me/dujinfang</div><div><div>http://www.dujinfang.com</div></div><div><br></div><div>Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div></div>