Skip to content

Commit 43b8a4f

Browse files
mifidanielleadams
authored andcommitted
doc: improve pipe description
I spent hours trying to make it work only to learn that it's not supported in node anymore, so I thought I'd save other people the time in the future. https://groups.google.com/g/nodejs/c/SxNKLclbM5k?pli=1 PR-URL: #42295 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
1 parent 8d734cb commit 43b8a4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/child_process.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,9 @@ pipes between the parent and child. The value is one of the following:
784784
`child_process` object as [`subprocess.stdio[fd]`][`subprocess.stdio`]. Pipes
785785
created for fds 0, 1, and 2 are also available as [`subprocess.stdin`][],
786786
[`subprocess.stdout`][] and [`subprocess.stderr`][], respectively.
787+
Currently, these are not actual Unix pipes and therefore the child process
788+
can not use them by their descriptor files,
789+
e.g. `/dev/fd/2` or `/dev/stdout`.
787790
2. `'overlapped'`: Same as `'pipe'` except that the `FILE_FLAG_OVERLAPPED` flag
788791
is set on the handle. This is necessary for overlapped I/O on the child
789792
process's stdio handles. See the

0 commit comments

Comments
 (0)