Explicitly handle SIGINT to terminate on Ctrl+C from docker
See https://github.com/nodejs/node/issues/4182
This commit is contained in:
parent
7a55ac9ebb
commit
0ec992eb21
1 changed files with 4 additions and 0 deletions
|
@ -342,6 +342,10 @@ module.exports = function(opts, callback) {
|
|||
return callback();
|
||||
});
|
||||
|
||||
process.on('SIGINT', function() {
|
||||
process.exit();
|
||||
});
|
||||
|
||||
setTimeout(callback, 1000);
|
||||
return {
|
||||
app: app,
|
||||
|
|
Loading…
Reference in a new issue