From b642aacfadf1f61c5e85432eada2cbc3b4f42efd Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Wed, 20 Dec 2017 19:51:32 +0000 Subject: [PATCH] fix: pass stdin to child process on -I Fixes #1036 - the no-stdin wasn't passing the process.stdin to the child. --- lib/monitor/run.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/monitor/run.js b/lib/monitor/run.js index 85ce0f3f..b6b0e309 100644 --- a/lib/monitor/run.js +++ b/lib/monitor/run.js @@ -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';