Skip to content

Commit

Permalink
doc: explain process.stdout in worker_threads
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshithaKP committed Jan 10, 2020
1 parent 405e7b4 commit dc27a37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/tty.md
Expand Up @@ -289,6 +289,10 @@ The `tty.isatty()` method returns `true` if the given `fd` is associated with
a TTY and `false` if it is not, including whenever `fd` is not a non-negative
integer.

Within `worker_threads`, this API will return `false` for process.stdout.
This is because the `process.stdout` of the worker is a pipe into the parent,
not actually a TTY.

[`process.stderr`]: process.html#process_process_stderr
[`process.stdin`]: process.html#process_process_stdin
[`process.stdout`]: process.html#process_process_stdout
Expand Down

0 comments on commit dc27a37

Please sign in to comment.