Skip to content

Commit

Permalink
refactor: check whether process has opened std in/out/err
Browse files Browse the repository at this point in the history
  • Loading branch information
michalholasek committed Jun 20, 2018
1 parent b08b0c8 commit f984944
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ignore-pipe-errors.js
@@ -1,4 +1,5 @@
module.exports = function ignorePipeErrors(proc) {
if (!proc.stdin || !proc.stdout || !proc.stderr) return;
proc.stdin.on('error', () => {});
proc.stdout.on('error', () => {});
proc.stderr.on('error', () => {});
Expand Down

0 comments on commit f984944

Please sign in to comment.