From 107cd02f5f9e42010628facdd12636f65774ecf7 Mon Sep 17 00:00:00 2001 From: Andrew Morris Date: Wed, 20 Jul 2016 17:36:14 +1000 Subject: [PATCH] fix: call .resume to prevent browser output streams filling up --- lib/launchers/process.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/launchers/process.js b/lib/launchers/process.js index c25039aa4..e079a53af 100644 --- a/lib/launchers/process.js +++ b/lib/launchers/process.js @@ -135,7 +135,17 @@ var ProcessLauncher = function (spawn, tempDir, timer) { ProcessLauncher.decoratorFactory = function (timer) { return function (launcher) { - ProcessLauncher.call(launcher, require('child_process').spawn, require('../temp_dir'), timer) + var spawn = require('child_process').spawn + + var spawnWithoutOutput = function () { + var proc = spawn.apply(null, arguments) + proc.stdout.resume() + proc.stderr.resume() + + return proc + } + + ProcessLauncher.call(launcher, spawnWithoutOutput, require('../temp_dir'), timer) } }