title: What's the right way to quit node.js after you've started a server?
body: <p>I'm developing a server-side node.js application. The problem is, after the server is started using <code>sudo node myfile.js</code> (without sudo it can't access port 80), I have no way to stop it except from using <code>sudo killall node</code> from another command prompt window, which seems wrong because it's laborous and won't activate the event <code>process.on("exit",callback)</code>.</p>