Skip to content

Commit

Permalink
Explicitly handle SIGINT to terminate on Ctrl+C from docker
Browse files Browse the repository at this point in the history
  • Loading branch information
petrsloup committed Dec 21, 2016
1 parent 7a55ac9 commit 0ec992e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ module.exports = function(opts, callback) {
return callback();
});

process.on('SIGINT', function() {
process.exit();
});

setTimeout(callback, 1000);
return {
app: app,
Expand Down

0 comments on commit 0ec992e

Please sign in to comment.