excute code in the supervisor when a child crashes?
Pablo Platt
pablo.platt@REDACTED
Mon Oct 19 18:12:16 CEST 2009
Hi,
I have a supervisor with simple_one_for_one.
When I start children with supervisor:start_child I save the child pid in an ETS table
so I'll be able to exchange messages between all the child processes.
When a child crashes I need to delete his pid from the ETS table or it'll grow constantly and eat all my memory.
Is it possible to execute code when a child crashes or terminates?
Thanks
More information about the erlang-questions
mailing list