I\'m reading through the excellent online book http://nodebeginner.org/ and trying out the simple code
var http = require(\"http\"); function onRequest(req
1) How do I shut down node.js gracefully?
Listening for a SIGINT signal. On Windows you need to listen for a ctrl-c with the readline module.
I've written my own solution to provide an application a graceful shutdown and the usage of domains: grace. It's worth to have a look.