Skip to content

Commit 53c163c

Browse files
committed
Disable test-child-process-custom-fds.js
1 parent 728b040 commit 53c163c

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

doc/api/child_processes.markdown

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,19 @@ The third argument is used to specify additional options, which defaults to:
5959

6060
{ cwd: undefined,
6161
env: process.env,
62-
customFds: [-1, -1, -1],
6362
setsid: false
6463
}
6564

6665
`cwd` allows you to specify the working directory from which the process is spawned.
6766
Use `env` to specify environment variables that will be visible to the new process.
68-
With `customFds` it is possible to hook up the new process' [stdin, stdout, stderr] to
69-
existing streams; `-1` means that a new stream should be created. `setsid`,
70-
if set true, will cause the subprocess to be run in a new session.
67+
68+
There is a deprecated option called `customFds` which allows one to specify
69+
specific file descriptors for the stdio of the child process. This API is
70+
was not portable to all platforms and therefore removed.
71+
With `customFds` it was possible to hook up the new process' [stdin, stdout,
72+
stderr] to existing streams; `-1` meant that a new stream should be created.
73+
74+
`setsid`, if set true, will cause the subprocess to be run in a new session.
7175

7276
Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit code:
7377

@@ -217,8 +221,7 @@ In the child the `process` object will have a `send()` method, and `process`
217221
will emit objects each time it receives a message on its channel.
218222

219223
By default the spawned Node process will have the stdin, stdout, stderr
220-
associated with the parent's. This can be overridden by using the
221-
`customFds` option.
224+
associated with the parent's.
222225

223226
These child Nodes are still whole new instances of V8. Assume at least 30ms
224227
startup and 10mb memory for each new Node. That is, you cannot create many
File renamed without changes.

0 commit comments

Comments
 (0)