Skip to content

Commit

Permalink
Exit with code 130 in SIGINT. Refs #2438
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Aug 15, 2016
1 parent 2a51080 commit 7509752
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ if (program.watch) {
process.on('SIGINT', function(){
showCursor();
console.log('\n');
process.exit();
process.exit(130);
});


Expand Down Expand Up @@ -428,7 +428,10 @@ function exit(code) {
done();
}

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

/**
* Parse list.
Expand Down

0 comments on commit 7509752

Please sign in to comment.