From 8b99099063c52e61ba5841ff21e3a243106ad2d8 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 13 Mar 2022 16:45:35 +0800 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/42295 Reviewed-By: Anna Henningsen Reviewed-By: Antoine du Hamel Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Mestery --- doc/api/child_process.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 31c8f506fc9bff..4e8116a9528221 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -806,6 +806,9 @@ pipes between the parent and child. The value is one of the following: `child_process` object as [`subprocess.stdio[fd]`][`subprocess.stdio`]. Pipes created for fds 0, 1, and 2 are also available as [`subprocess.stdin`][], [`subprocess.stdout`][] and [`subprocess.stderr`][], respectively. + Currently, these are not actual Unix pipes and therefore the child process + can not use them by their descriptor files, + e.g. `/dev/fd/2` or `/dev/stdout`. 2. `'overlapped'`: Same as `'pipe'` except that the `FILE_FLAG_OVERLAPPED` flag is set on the handle. This is necessary for overlapped I/O on the child process's stdio handles. See the