From 43b8a4fc570dc35706dfab13b3768e71c093a9a5 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 63229fe68362af..57656ecbfdde77 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -784,6 +784,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