4 ms·
I meant it the other way round. The question was not about what happens when the child dies. It was rather how does the parent let the child know that it should
by rumcajz 8y ago
I meant it the other way round. The question was not about what happens when the child dies. It was rather how does the parent let the child know that it should terminate. Or that it should eventually terminate, but that it should attempt a clean shut down.
- _asummers 8y agoThe supervisor can also terminate its children. The communication goes both ways. But the children may also be supervisors with their own children. which all have their own termination behavior. The VM is designed around reliability and addresses this sort of behavior with language constructs.
- rumcajz 8y agoOk, I guess I'll have to give it a closer look. But are you positive they have a good story about interactions between hard and soft shutdowns? E.g. when grandparent requests a hard shutdown but parent a soft shutdown. Or vice versa. Or if timeouts of cancellations on different level of the hierarchy don't match?
- _asummers 8y agoIt was designed for dealing with telephone switches, which could go offline for any reason, and need to be worked around. I recommend the entirety of LYSE, but [0] this chapter should give you some footing. To your specific question, upon receipt of the DOWN message, the processes can respond according to what makes sense to the domain. [0] https://learnyousomeerlang.com/supervisors https://learnyousomeerlang.com/supervisors
- rumcajz 8y agoThanks!