| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 535e0e5 commit 8f79a90
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -590,8 +590,7 @@ For convenience, `options.stdio` may be one of the following strings: | |||
| 590 | 590 | ||
| 591 | 591 | * `'pipe'` - equivalent to `['pipe', 'pipe', 'pipe']` (the default) | |
| 592 | 592 | * `'ignore'` - equivalent to `['ignore', 'ignore', 'ignore']` | |
| 593 | - * `'inherit'` - equivalent to `[process.stdin, process.stdout, process.stderr]` | ||
| 594 | - or `[0,1,2]` | ||
| 593 | + * `'inherit'` - equivalent to `['inherit', 'inherit', 'inherit']` or `[0, 1, 2]` | ||
| 595 | 594 | ||
| 596 | 595 | Otherwise, the value of `options.stdio` is an array where each index corresponds | |
| 597 | 596 | to an fd in the child. The fds 0, 1, and 2 correspond to stdin, stdout, | |
@@ -617,16 +616,20 @@ pipes between the parent and child. The value is one of the following: | |||
| 617 | 616 | will always open fds 0 - 2 for the processes it spawns, setting the fd to | |
| 618 | 617 | `'ignore'` will cause Node.js to open `/dev/null` and attach it to the | |
| 619 | 618 | child's fd. | |
| 620 | - 4. {Stream} object - Share a readable or writable stream that refers to a tty, | ||
| 619 | + 4. `'inherit'` - Pass through the corresponding stdio stream to/from the | ||
| 620 | + parent process. In the first three positions, this is equivalent to | ||
| 621 | + `process.stdin`, `process.stdout`, and `process.stderr`, respectively. In | ||
| 622 | + any other position, equivalent to `'ignore'`. | ||
| 623 | + 5. {Stream} object - Share a readable or writable stream that refers to a tty, | ||
| 621 | 624 | file, socket, or a pipe with the child process. The stream's underlying | |
| 622 | 625 | file descriptor is duplicated in the child process to the fd that | |
| 623 | 626 | corresponds to the index in the `stdio` array. Note that the stream must | |
| 624 | 627 | have an underlying descriptor (file streams do not until the `'open'` | |
| 625 | 628 | event has occurred). | |
| 626 | - 5. Positive integer - The integer value is interpreted as a file descriptor | ||
| 629 | + 6. Positive integer - The integer value is interpreted as a file descriptor | ||
| 627 | 630 | that is currently open in the parent process. It is shared with the child | |
| 628 | 631 | process, similar to how {Stream} objects can be shared. | |
| 629 | - 6. `null`, `undefined` - Use default value. For stdio fds 0, 1, and 2 (in other | ||
| 632 | + 7. `null`, `undefined` - Use default value. For stdio fds 0, 1, and 2 (in other | ||
| 630 | 633 | words, stdin, stdout, and stderr) a pipe is created. For fd 3 and up, the | |
| 631 | 634 | default is `'ignore'`. | |
| 632 | 635 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments