[erlang-questions] Terminating supervisor gracefully
Tue Mar 4 16:21:00 CET 2008
I have several task that need to be called by crone. One of them is
supervisor, which creates child process that perform the task. Once the
child processes have completed their task, I would like to terminate
I looked at the supervisor.erl. It has terminate/2. I did some googling
and came to conclusion that only graceful way to stop supervisor and the
tree is via otp application.
That brings up another question: if crone starts an erlang otp application,
I need a way to know when to stop it. Seems like, I have to spawn a process
to monitor otp_application and when supervisor's workers have finished the
task, send a signal to application_monitor process, indicating it's safe to
stop the otp_application. Any other workaround?
q2) Would it be possible to have erlang_source viewable on the web? Google
code displays outdated releases.
That which we persist in doing becomes easier for us to do; not that the
nature of the thing itself is changed, but that our power to do is
-Ralph Waldo Emerson
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions