limit the graceful shutdown time to 3 seconds

This commit is contained in:
Peter 'Pita' Martischka 2011-08-18 20:54:04 +01:00
parent 2dd82f82de
commit ad1e8fb4f8
1 changed files with 4 additions and 0 deletions

View File

@ -378,6 +378,10 @@ async.waterfall([
process.exit(0);
});
setTimeout(function(){
process.exit(1);
}, 3000);
}
//connect graceful shutdown with sigint and uncaughtexception