summaryrefslogtreecommitdiff
path: root/doc/api/cluster.md
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-07-18 20:12:19 +0200
committerAnna Henningsen <anna@addaleax.net>2017-07-18 20:42:42 +0200
commita3365c6ae91953f404b4e030b9dfba872ce9c77d (patch)
treedfd7515311c5fe8a38647be853a628a39b2b3845 /doc/api/cluster.md
parent3ccfeb483df5a6402da9b40346a7eb33cfb4b70a (diff)
downloadandroid-node-v8-a3365c6ae91953f404b4e030b9dfba872ce9c77d.tar.gz
android-node-v8-a3365c6ae91953f404b4e030b9dfba872ce9c77d.tar.bz2
android-node-v8-a3365c6ae91953f404b4e030b9dfba872ce9c77d.zip
doc: fix inspectPort documentation in cluster.md
- Add missing `changes:` entry - Use full sentences - Use proper indentation Ref: https://github.com/nodejs/node/pull/14140 PR-URL: https://github.com/nodejs/node/pull/14349 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/cluster.md')
-rw-r--r--doc/api/cluster.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/api/cluster.md b/doc/api/cluster.md
index 4f94bc87e5..fac182ba7b 100644
--- a/doc/api/cluster.md
+++ b/doc/api/cluster.md
@@ -694,6 +694,9 @@ values are `"rr"` and `"none"`.
<!-- YAML
added: v0.7.1
changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/14140
+ description: The `inspectPort` option is supported now.
- version: v6.4.0
pr-url: https://github.com/nodejs/node/pull/7838
description: The `stdio` option is supported now.
@@ -713,8 +716,9 @@ changes:
* `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.
- Accepts number, or function that evaluates to number. By default
- each worker gets port, incremented from master's `process.debugPort`.
+ This can be a number, or a function that takes no arguments and returns a
+ number. By default each worker gets its own port, incremented from the
+ master's `process.debugPort`.
After calling `.setupMaster()` (or `.fork()`) this settings object will contain
the settings, including the default values.