Skip to content

Commit 1d88943

Browse files
committed
fix: pass stdin to child process on -I
Fixes #1036 - the no-stdin wasn't passing the process.stdin to the child.
1 parent 1e2516d commit 1d88943

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/monitor/run.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ function run(options) {
3232
var stdio = ['pipe', 'pipe', 'pipe'];
3333

3434
if (config.options.stdout) {
35-
stdio = ['pipe',
36-
process.stdout,
37-
process.stderr,];
35+
stdio = ['pipe', process.stdout, process.stderr];
36+
}
37+
38+
if (config.options.stdin === false) {
39+
stdio = [process.stdin, process.stdout, process.stderr];
3840
}
3941

4042
var sh = 'sh';

0 commit comments

Comments
 (0)