doc: correct info in child_process.md

`child.stderr`, `child.stdin`, and `child.stdout`
are `null`, not `undefined`, if the relevant `stdio` properties
are set to anything other than 'pipe'.

PR-URL: https://github.com/nodejs/node/pull/11949
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Vse Mozhet Byt authored and Myles Borins committed 2017-03-28 18:28:56 -04:00
1 parent 91a2700721
commit 41bec5cff4
1 file changed
+3 -3
+3 -3
View File
@@ -1119,7 +1119,7 @@ added: v0.1.90
A `Readable Stream` that represents the child process's `stderr`.
If the child was spawned with `stdio[2]` set to anything other than `'pipe'`,
then this will be `undefined`.
then this will be `null`.
`child.stderr` is an alias for `child.stdio[2]`. Both properties will refer to
the same value.
@@ -1137,7 +1137,7 @@ A `Writable Stream` that represents the child process's `stdin`.
continue until this stream has been closed via `end()`.*
If the child was spawned with `stdio[0]` set to anything other than `'pipe'`,
then this will be `undefined`.
then this will be `null`.
`child.stdin` is an alias for `child.stdio[0]`. Both properties will refer to
the same value.
@@ -1192,7 +1192,7 @@ added: v0.1.90
A `Readable Stream` that represents the child process's `stdout`.
If the child was spawned with `stdio[1]` set to anything other than `'pipe'`,
then this will be `undefined`.
then this will be `null`.
`child.stdout` is an alias for `child.stdio[1]`. Both properties will refer
to the same value.