Merge pull request #542 from spantaleev/exit-on-sigint

Exit on SIGINT
This commit is contained in:
zadam 2019-05-29 19:40:04 +02:00 committed by GitHub
commit 373ec4ac50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,11 @@ process.on('unhandledRejection', error => {
require('./services/log').info(error);
});
process.on('SIGINT', function() {
console.log("Caught interrupt signal. Exiting.");
process.exit();
});
const { app, sessionParser } = require('./app');
const debug = require('debug')('node:server');
const fs = require('fs');