Handle ENOMEM signal emitted by grainstore

This commit is contained in:
Daniel García Aubert 2019-03-26 18:54:42 +01:00
parent 01212920ae
commit b222dd15c0

1
app.js
View File

@ -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));
}