Also bump up the buffer memory
This commit is contained in:
parent
ee89782d65
commit
0ac94427e7
4
shell.js
4
shell.js
@ -36,7 +36,7 @@ function exec(tag, file, args, options, callback) {
|
|||||||
|
|
||||||
debug(tag + ' execFile: %s %s', file, args.join(' '));
|
debug(tag + ' execFile: %s %s', file, args.join(' '));
|
||||||
|
|
||||||
options.maxBuffer = 5000 * 1024; // in bytes default is 200*1024
|
options.maxBuffer = 10000 * 1024; // in bytes default is 200*1024
|
||||||
|
|
||||||
var cp = child_process.spawn(file, args, options);
|
var cp = child_process.spawn(file, args, options);
|
||||||
cp.stdout.on('data', function (data) {
|
cp.stdout.on('data', function (data) {
|
||||||
@ -75,7 +75,7 @@ function system(tag, cmd, options, callback) {
|
|||||||
|
|
||||||
debug(tag + ' system: %s %j', cmd, options);
|
debug(tag + ' system: %s %j', cmd, options);
|
||||||
|
|
||||||
options.maxBuffer = 5000 * 1024; // in bytes default is 200*1024
|
options.maxBuffer = 10000 * 1024; // in bytes default is 200*1024
|
||||||
|
|
||||||
var cp = child_process.exec(cmd, options, function (error, stdout, stderr) {
|
var cp = child_process.exec(cmd, options, function (error, stdout, stderr) {
|
||||||
if (error) debug(tag + ' (error) ' + error);
|
if (error) debug(tag + ' (error) ' + error);
|
||||||
|
Loading…
Reference in New Issue
Block a user