@@ -485,7 +485,8 @@ See also: `child_process.exec()` and `child_process.fork()`
485
485
understand the ` -c ` switch on UNIX or ` /s /c ` on Windows. On Windows,
486
486
command line parsing should be compatible with ` cmd.exe ` .)
487
487
* ` timeout ` {Number} (Default: 0)
488
- * ` maxBuffer ` {Number} (Default: ` 200*1024 ` )
488
+ * ` maxBuffer ` {Number} largest amount of data (in bytes) allowed on stdout or
489
+ stderr - if exceeded child process is killed (Default: ` 200*1024 ` )
489
490
* ` killSignal ` {String} (Default: 'SIGTERM')
490
491
* ` uid ` {Number} Sets the user identity of the process. (See setuid(2).)
491
492
* ` gid ` {Number} Sets the group identity of the process. (See setgid(2).)
@@ -527,8 +528,8 @@ default options are
527
528
If ` timeout ` is greater than 0, then it will kill the child process
528
529
if it runs longer than ` timeout ` milliseconds. The child process is killed with
529
530
` killSignal ` (default: ` 'SIGTERM' ` ). ` maxBuffer ` specifies the largest
530
- amount of data allowed on stdout or stderr - if this value is exceeded then
531
- the child process is killed.
531
+ amount of data (in bytes) allowed on stdout or stderr - if this value is
532
+ exceeded then the child process is killed.
532
533
533
534
534
535
### child_process.execFile(file, [ args] , [ options] , [ callback] )
@@ -540,7 +541,8 @@ the child process is killed.
540
541
* ` env ` {Object} Environment key-value pairs
541
542
* ` encoding ` {String} (Default: 'utf8')
542
543
* ` timeout ` {Number} (Default: 0)
543
- * ` maxBuffer ` {Number} (Default: 200\* 1024)
544
+ * ` maxBuffer ` {Number} largest amount of data (in bytes) allowed on stdout or
545
+ stderr - if exceeded child process is killed (Default: 200\* 1024)
544
546
* ` killSignal ` {String} (Default: 'SIGTERM')
545
547
* ` uid ` {Number} Sets the user identity of the process. (See setuid(2).)
546
548
* ` gid ` {Number} Sets the group identity of the process. (See setgid(2).)
@@ -612,7 +614,8 @@ configuration at startup.
612
614
* ` gid ` {Number} Sets the group identity of the process. (See setgid(2).)
613
615
* ` timeout ` {Number} In milliseconds the maximum amount of time the process is allowed to run. (Default: undefined)
614
616
* ` killSignal ` {String} The signal value to be used when the spawned process will be killed. (Default: 'SIGTERM')
615
- * ` maxBuffer ` {Number}
617
+ * ` maxBuffer ` {Number} largest amount of data (in bytes) allowed on stdout or
618
+ stderr - if exceeded child process is killed
616
619
* ` encoding ` {String} The encoding used for all stdio inputs and outputs. (Default: 'buffer')
617
620
* return: {Object}
618
621
* ` pid ` {Number} Pid of the child process
@@ -645,7 +648,8 @@ process has exited.
645
648
* ` gid ` {Number} Sets the group identity of the process. (See setgid(2).)
646
649
* ` timeout ` {Number} In milliseconds the maximum amount of time the process is allowed to run. (Default: undefined)
647
650
* ` killSignal ` {String} The signal value to be used when the spawned process will be killed. (Default: 'SIGTERM')
648
- * ` maxBuffer ` {Number}
651
+ * ` maxBuffer ` {Number} largest amount of data (in bytes) allowed on stdout or
652
+ stderr - if exceeded child process is killed
649
653
* ` encoding ` {String} The encoding used for all stdio inputs and outputs. (Default: 'buffer')
650
654
* return: {Buffer|String} The stdout from the command
651
655
@@ -675,7 +679,8 @@ throw. The `Error` object will contain the entire result from
675
679
* ` gid ` {Number} Sets the group identity of the process. (See setgid(2).)
676
680
* ` timeout ` {Number} In milliseconds the maximum amount of time the process is allowed to run. (Default: undefined)
677
681
* ` killSignal ` {String} The signal value to be used when the spawned process will be killed. (Default: 'SIGTERM')
678
- * ` maxBuffer ` {Number}
682
+ * ` maxBuffer ` {Number} largest amount of data (in bytes) allowed on stdout or
683
+ stderr - if exceeded child process is killed
679
684
* ` encoding ` {String} The encoding used for all stdio inputs and outputs. (Default: 'buffer')
680
685
* return: {Buffer|String} The stdout from the command
681
686
0 commit comments