Skip to content

Commit

Permalink
fix: call .resume to prevent browser output streams filling up
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Jul 26, 2016
1 parent ca4e2c7 commit 107cd02
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/launchers/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 107cd02

Please sign in to comment.