doc: note stdout and stderr special behaviors.
Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
This commit is contained in:
parent
1781c8b85b
commit
95726b0fce
@ -181,7 +181,8 @@ Example: the definition of `console.log`
|
|||||||
};
|
};
|
||||||
|
|
||||||
`process.stderr` and `process.stdout` are unlike other streams in Node in
|
`process.stderr` and `process.stdout` are unlike other streams in Node in
|
||||||
that writes to them are usually blocking.
|
that they cannot be closed (`end()` will throw), they never emit the `finish`
|
||||||
|
event and that writes are usually blocking.
|
||||||
|
|
||||||
- They are blocking in the case that they refer to regular files or TTY file
|
- They are blocking in the case that they refer to regular files or TTY file
|
||||||
descriptors.
|
descriptors.
|
||||||
@ -209,7 +210,8 @@ See [the tty docs](tty.html#tty_tty) for more information.
|
|||||||
A writable stream to stderr.
|
A writable stream to stderr.
|
||||||
|
|
||||||
`process.stderr` and `process.stdout` are unlike other streams in Node in
|
`process.stderr` and `process.stdout` are unlike other streams in Node in
|
||||||
that writes to them are usually blocking.
|
that they cannot be closed (`end()` will throw), they never emit the `finish`
|
||||||
|
event and that writes are usually blocking.
|
||||||
|
|
||||||
- They are blocking in the case that they refer to regular files or TTY file
|
- They are blocking in the case that they refer to regular files or TTY file
|
||||||
descriptors.
|
descriptors.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user