From 95726b0fce0ae1ae60591f0a535515e8dabfd6df Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Tue, 23 Sep 2014 16:51:33 +0200 Subject: [PATCH] doc: note stdout and stderr special behaviors. Reviewed-By: Trevor Norris Reviewed-By: Chris Dickinson --- doc/api/process.markdown | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/api/process.markdown b/doc/api/process.markdown index 68bb2a66539725..614f5cf07aa225 100644 --- a/doc/api/process.markdown +++ b/doc/api/process.markdown @@ -181,7 +181,8 @@ Example: the definition of `console.log` }; `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 descriptors. @@ -209,7 +210,8 @@ See [the tty docs](tty.html#tty_tty) for more information. A writable stream to stderr. `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 descriptors.