Skip to content

Commit

Permalink
add kill catcher
Browse files Browse the repository at this point in the history
  • Loading branch information
khash committed Apr 21, 2020
1 parent 73e9751 commit d5f135e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ var server = http.createServer(app);
* Listen on provided port, on all network interfaces.
*/

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

server.listen(port);
server.on('error', onError);
server.on('listening', onListening);
Expand Down

0 comments on commit d5f135e

Please sign in to comment.