doc: note stdout and stderr special behaviors.
authorJulien Fontanet <julien.fontanet@isonoe.net>
Tue, 23 Sep 2014 14:51:33 +0000 (16:51 +0200)
committerChris Dickinson <christopher.s.dickinson@gmail.com>
Wed, 1 Oct 2014 18:45:23 +0000 (11:45 -0700)
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
doc/api/process.markdown

index 68bb2a6..614f5cf 100644 (file)
@@ -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.