Skip to content

Commit

Permalink
Remove aborting with SIGINT since stdin is inherited.
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Sep 7, 2015
1 parent 7dff154 commit 84bff03
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,6 @@ if (require.main === module) {
// Execute.
const promise = main(process.argv.slice(2));

// SIGINT/SIGTERM Handling.
process.on("SIGINT", () => {
promise.abort();
});
process.on("SIGTERM", () => {
promise.abort();
});

// Error Handling.
promise.catch(err => {
console.error("ERROR:", err.message); // eslint-disable-line no-console
Expand Down

0 comments on commit 84bff03

Please sign in to comment.