> The state that is being tracked is "children are dieing immediately after start" vs "not dieing", which is exactly the value of env.cmd.

This idea is not well expressed in the code, but I don't have a suggestion on how to change the code to make it more clear. Let's keep it as it is and move on.