From 03fb57ffc05b7c1af27c757f9318f79fa3c04e3c Mon Sep 17 00:00:00 2001 From: Kenneth Skovhus Date: Sat, 19 Nov 2016 23:54:29 +0100 Subject: [PATCH 1/2] doc: child_process .stdio accepts a String type Document that `execFileSync`, `execSync` and `spawnSync` also supports `stdio` as an Array. Fixes: #9636 --- doc/api/child_process.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 8675fb3f40fe33..414385ba50a0e7 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -551,7 +551,7 @@ added: v0.11.12 * `cwd` {String} Current working directory of the child process * `input` {String|Buffer} The value which will be passed as stdin to the spawned process - supplying this value will override `stdio[0]` - * `stdio` {Array} Child's stdio configuration. (Default: 'pipe') + * `stdio` {String|Array} Child's stdio configuration. (Default: 'pipe') - `stderr` by default will be output to the parent process' stderr unless `stdio` is specified * `env` {Object} Environment key-value pairs @@ -586,7 +586,7 @@ added: v0.11.12 * `cwd` {String} Current working directory of the child process * `input` {String|Buffer} The value which will be passed as stdin to the spawned process - supplying this value will override `stdio[0]` - * `stdio` {Array} Child's stdio configuration. (Default: 'pipe') + * `stdio` {String|Array} Child's stdio configuration. (Default: 'pipe') - `stderr` by default will be output to the parent process' stderr unless `stdio` is specified * `env` {Object} Environment key-value pairs @@ -626,7 +626,7 @@ added: v0.11.12 * `cwd` {String} Current working directory of the child process * `input` {String|Buffer} The value which will be passed as stdin to the spawned process - supplying this value will override `stdio[0]` - * `stdio` {Array} Child's stdio configuration. + * `stdio` {String|Array} Child's stdio configuration. * `env` {Object} Environment key-value pairs * `uid` {Number} Sets the user identity of the process. (See setuid(2).) * `gid` {Number} Sets the group identity of the process. (See setgid(2).) From f95737ec91d7674874c96be762ffa309409d372d Mon Sep 17 00:00:00 2001 From: Kenneth Skovhus Date: Sun, 20 Nov 2016 22:04:53 +0100 Subject: [PATCH 2/2] doc: child_process.execSync .stdio default is pipe --- doc/api/child_process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 414385ba50a0e7..b596b2547d3f6d 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -626,7 +626,7 @@ added: v0.11.12 * `cwd` {String} Current working directory of the child process * `input` {String|Buffer} The value which will be passed as stdin to the spawned process - supplying this value will override `stdio[0]` - * `stdio` {String|Array} Child's stdio configuration. + * `stdio` {String|Array} Child's stdio configuration. (Default: 'pipe') * `env` {Object} Environment key-value pairs * `uid` {Number} Sets the user identity of the process. (See setuid(2).) * `gid` {Number} Sets the group identity of the process. (See setgid(2).)