<div dir="ltr"><div>Hello List,</div><div><br></div><div>I am writing an Erlang application in which the main supervisor spawns a child process (let's call it 'Process Monitor' process) which in turn monitors the children of another simple-one-for-one supervisor. What I notice is, if I deliberately kill this 'Process Monitor', all the monitors it had will automatically attach to the main supervisor (even though the main supervisor will have no idea how to handle those child processes DOWN messages if they arrive later, isn't it??). Is this normal and by design?</div><div><br></div><div>Also, since the 'Process Monitor' process is part of the supervision tree, it restarts and I coded it in such a way to try to monitor those child processes again. Calling erlang:monitor/2 returns the MonitorRef but it does not seem to work.</div><div><br></div><div>I have made a very small app to show the problem. The code and output is available at <a href="https://github.com/vimal7370/myapp">https://github.com/vimal7370/myapp</a> and it would be great if someone can take a quick look at the code, or clone and run it and guide me on what I am doing wrong.</div><div><br></div><div>Thank you!</div><div><br></div><div>Regards,</div><div>Vimal</div></div>