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 1d88943
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 1d88943

Please sign in to comment.