[erlang-questions] otp supervisor terminate callback
Seven Du
dujinfang@REDACTED
Sat Apr 20 10:34:23 CEST 2013
Hi,
I'd like to know is it possible to have a terminate callback that clean up things when the supervisor stops?
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?
Thanks
--
Seven Du
http://www.freeswitch.org.cn
http://about.me/dujinfang
http://www.dujinfang.com
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130420/89442ef1/attachment.htm>
More information about the erlang-questions
mailing list