From 210083c7ce4bd614b72b1f2f57bc72992ba2819b Mon Sep 17 00:00:00 2001 From: jwdeitch Date: Thu, 12 Jan 2017 13:01:33 -0500 Subject: [PATCH] Allow an unlimited maxBuffer size --- lib/child_process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/child_process.js b/lib/child_process.js index 6fe5351fd6fdda..200fe4c7fec157 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -261,7 +261,7 @@ exports.execFile = function(file /*, args, options, callback*/) { child.stdout.on('data', function onChildStdout(chunk) { stdoutLen += encoding ? Buffer.byteLength(chunk, encoding) : chunk.length; - if (stdoutLen > options.maxBuffer) { + if (stdoutLen > options.maxBuffer && options.maxBuffer !== 0) { ex = new Error('stdout maxBuffer exceeded'); kill(); } else {