Difference between ChildProcess close, exit events <p>When spawning child processes via <code>spawn()/exec()/...</code> in Node.js, there is a <code>'close'</code> and an <code>'exit'</code> event on child processes.</p> <p>What is the difference between those two and when do you need to use what?</p>