@@ -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.
6766Use ` 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
7276Example 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`
217221will emit objects each time it receives a message on its channel.
218222
219223By 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
223226These child Nodes are still whole new instances of V8. Assume at least 30ms
224227startup and 10mb memory for each new Node. That is, you cannot create many
0 commit comments