Permalink
Browse files

Chore: Use process.exitCode instead of process.exit() in bin/eslint.js (

  • Loading branch information...
1 parent 0d60db7 commit 759525e1b0dffa44d8aa9f073d8f709ea4bbb794 @not-an-aardvark not-an-aardvark committed with nzakas Nov 9, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/eslint.js
View
@@ -5,7 +5,7 @@
* @author Nicholas C. Zakas
*/
-/* eslint no-console:off, no-process-exit:off */
+/* eslint no-console:off */
"use strict";
@@ -36,7 +36,7 @@ const concat = require("concat-stream"),
// Execution
//------------------------------------------------------------------------------
-process.on("uncaughtException", err => {
+process.once("uncaughtException", err => {
// lazy load
const lodash = require("lodash");
@@ -51,7 +51,7 @@ process.on("uncaughtException", err => {
console.log(err.stack);
}
- process.exit(1);
+ process.exitCode = 1;
});
if (useStdIn) {

0 comments on commit 759525e

Please sign in to comment.