don't do a graceful shutdown on SIGINT on windows
This commit is contained in:
parent
dd4c8dc3aa
commit
ef6a75ca54
|
@ -385,7 +385,13 @@ async.waterfall([
|
||||||
}
|
}
|
||||||
|
|
||||||
//connect graceful shutdown with sigint and uncaughtexception
|
//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);
|
process.on('uncaughtException', gracefulShutdown);
|
||||||
|
|
||||||
//init socket.io and redirect all requests to the MessageHandler
|
//init socket.io and redirect all requests to the MessageHandler
|
||||||
|
|
Loading…
Reference in New Issue