Handle ENOMEM signal emitted by grainstore
This commit is contained in:
parent
01212920ae
commit
b222dd15c0
1
app.js
1
app.js
@ -233,6 +233,7 @@ addHandlers(listener, logger, 45000);
|
||||
function addHandlers(listener, logger, killTimeout) {
|
||||
process.on('uncaughtException', exitProcess(listener, logger, killTimeout));
|
||||
process.on('unhandledRejection', exitProcess(listener, logger, killTimeout));
|
||||
process.on('ENOMEM', exitProcess(listener, logger, killTimeout));
|
||||
process.on('SIGINT', exitProcess(listener, logger, killTimeout));
|
||||
process.on('SIGTERM', exitProcess(listener, logger, killTimeout));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user