Skip to content

Commit 107cd02

Browse files
committed
fix: call .resume to prevent browser output streams filling up
1 parent ca4e2c7 commit 107cd02

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

lib/launchers/process.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,17 @@ var ProcessLauncher = function (spawn, tempDir, timer) {
135135

136136
ProcessLauncher.decoratorFactory = function (timer) {
137137
return function (launcher) {
138-
ProcessLauncher.call(launcher, require('child_process').spawn, require('../temp_dir'), timer)
138+
var spawn = require('child_process').spawn
139+
140+
var spawnWithoutOutput = function () {
141+
var proc = spawn.apply(null, arguments)
142+
proc.stdout.resume()
143+
proc.stderr.resume()
144+
145+
return proc
146+
}
147+
148+
ProcessLauncher.call(launcher, spawnWithoutOutput, require('../temp_dir'), timer)
139149
}
140150
}
141151

0 commit comments

Comments
 (0)