Skip to content

Commit

Permalink
Merge pull request #2267 from voltrevo/master
Browse files Browse the repository at this point in the history
Call .resume() on process streams so they don't get blocked
  • Loading branch information
dignifiedquire committed Jul 29, 2016
2 parents cbd44f3 + 107cd02 commit 6b07c98
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/launchers/process.js
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 6b07c98

Please sign in to comment.