[erlang-questions] how: notify a static child when a supervisor restarts

Jim McCoy jim.mccoy@REDACTED
Fri Nov 30 19:28:56 CET 2007

The static child does not start up with the list of dynamic children
it creates, these children are created in response to other messages
it is passed after startup.  The basic scenario here is that after
startup the static child is passed directory names that it verifies
and scans for certain files, when these files are found it creates a
dynamic worker process to handle the file.  I am guessing that I will
have to re-think things a bit and create a process outside this
supervision tree that will maintain state on the directories that have
been added and link this to the static child to deal with re-injecting
state after resets.


On Nov 30, 2007 6:07 AM, Chandru <chandrashekhar.mullaparthi@REDACTED> wrote:
> If you supervisor has restarted, the static child will be killed and
> respawned by the supervisor. Your static child then spawns all the
> dynamic ones at startup. Or have I missed the point?
> cheers
> Chandru

More information about the erlang-questions mailing list