Skip to content

Commit

Permalink
Exit process on SIGINT (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeyhew authored and SBoudrias committed Dec 4, 2016
1 parent 384e846 commit d66245c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -129,7 +129,8 @@ UpdateNotifier.prototype.notify = function (opts) {
});

process.on('SIGINT', function () {
console.error('\n' + message);
console.error('');
process.exit();
});
}

Expand Down

0 comments on commit d66245c

Please sign in to comment.