Skip to content

Commit

Permalink
make it less visible
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasMadsen committed Jan 31, 2018
1 parent 3b5f68c commit eebf9b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,8 @@ process.once('beforeexit', function () {
})

// NOTE: Workaround until https://github.com/nodejs/node/issues/18476 is solved
process.on('SIGINT', () => process.exit(0))
skipThis = true
process.on('SIGINT', function () {
if (process.listenerCount('SIGINT') === 1) process.exit(0)
})
skipThis = false

0 comments on commit eebf9b5

Please sign in to comment.