From ef6a75ca54039540705d9a2192895ba86134e512 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Thu, 18 Aug 2011 21:02:54 +0100 Subject: [PATCH] don't do a graceful shutdown on SIGINT on windows --- node/server.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/node/server.js b/node/server.js index db16f8343..10a95be6c 100644 --- a/node/server.js +++ b/node/server.js @@ -385,7 +385,13 @@ async.waterfall([ } //connect graceful shutdown with sigint and uncaughtexception - process.on('SIGINT', gracefulShutdown); + if(os.type().indexOf("Windows") == -1) + { + //sigint is so far not working on windows + //https://github.com/joyent/node/issues/1553 + process.on('SIGINT', gracefulShutdown); + } + process.on('uncaughtException', gracefulShutdown); //init socket.io and redirect all requests to the MessageHandler