mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
limit the graceful shutdown time to 3 seconds
This commit is contained in:
parent
2dd82f82de
commit
ad1e8fb4f8
1 changed files with 4 additions and 0 deletions
|
@ -378,6 +378,10 @@ async.waterfall([
|
||||||
|
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
setTimeout(function(){
|
||||||
|
process.exit(1);
|
||||||
|
}, 3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
//connect graceful shutdown with sigint and uncaughtexception
|
//connect graceful shutdown with sigint and uncaughtexception
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue