don't do a graceful shutdown on SIGINT on windows

pull/97/merge
Peter 'Pita' Martischka 2011-08-18 21:02:54 +01:00
parent dd4c8dc3aa
commit ef6a75ca54
1 changed files with 7 additions and 1 deletions

View File

@ -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