Skip to content

Commit

Permalink
fix: pass stdin to child process on -I
Browse files Browse the repository at this point in the history
Fixes #1036 - the no-stdin wasn't passing the process.stdin to the
child.
  • Loading branch information
remy committed Dec 20, 2017
1 parent 1e2516d commit b642aac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ function run(options) {
var stdio = ['pipe', 'pipe', 'pipe'];

if (config.options.stdout) {
stdio = ['pipe',
process.stdout,
process.stderr,];
stdio = ['pipe', process.stdout, process.stderr];
}

if (config.options.stdin === false) {
stdio = [process.stdin, process.stdout, process.stderr];
}

var sh = 'sh';
Expand Down

0 comments on commit b642aac

Please sign in to comment.