mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: improve the documentation of the stdio option
Fixes: https://github.com/nodejs/node/issues/47705 PR-URL: https://github.com/nodejs/node/pull/48110 Refs: https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersettings Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
a2aa52ba92
commit
f2bb1919e5
1 file changed
+4
-1
+4
-1
@@ -935,7 +935,8 @@ changes:
|
||||
**Default:** `false`.
|
||||
* `stdio` {Array} Configures the stdio of forked processes. Because the
|
||||
cluster module relies on IPC to function, this configuration must contain an
|
||||
`'ipc'` entry. When this option is provided, it overrides `silent`.
|
||||
`'ipc'` entry. When this option is provided, it overrides `silent`. See
|
||||
[`child_process.spawn()`][]'s [`stdio`][].
|
||||
* `uid` {number} Sets the user identity of the process. (See setuid(2).)
|
||||
* `gid` {number} Sets the group identity of the process. (See setgid(2).)
|
||||
* `inspectPort` {number|Function} Sets inspector port of worker.
|
||||
@@ -1092,6 +1093,7 @@ for (const worker of Object.values(cluster.workers)) {
|
||||
[`.setupPrimary()`]: #clustersetupprimarysettings
|
||||
[`ChildProcess.send()`]: child_process.md#subprocesssendmessage-sendhandle-options-callback
|
||||
[`child_process.fork()`]: child_process.md#child_processforkmodulepath-args-options
|
||||
[`child_process.spawn()`]: child_process.md#child_processspawncommand-args-options
|
||||
[`child_process` event: `'exit'`]: child_process.md#event-exit
|
||||
[`child_process` event: `'message'`]: child_process.md#event-message
|
||||
[`cluster.isPrimary`]: #clusterisprimary
|
||||
@@ -1100,5 +1102,6 @@ for (const worker of Object.values(cluster.workers)) {
|
||||
[`kill()`]: process.md#processkillpid-signal
|
||||
[`process` event: `'message'`]: process.md#event-message
|
||||
[`server.close()`]: net.md#event-close
|
||||
[`stdio`]: child_process.md#optionsstdio
|
||||
[`worker.exitedAfterDisconnect`]: #workerexitedafterdisconnect
|
||||
[`worker_threads`]: worker_threads.md
|
||||
Reference in new issue
Block a user