diff options
author | cjihrig <cjihrig@gmail.com> | 2018-01-26 22:16:20 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-01-29 18:24:45 +0300 |
commit | e0864e50ecf917cbfa98d443e6f122425d6447cf (patch) | |
tree | 37b38c48a4c91d5f9eed9675c705125e3d5dff77 /doc/api/cluster.md | |
parent | 0778f79cb37526c3f4f8bff525fc4d4ca9b86e78 (diff) |
cluster: add cwd to cluster.settings
This commit allows cluster workers to be created with
configurable working directories.
Fixes: https://github.com/nodejs/node/issues/16388
PR-URL: https://github.com/nodejs/node/pull/18399
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api/cluster.md')
-rw-r--r-- | doc/api/cluster.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/cluster.md b/doc/api/cluster.md index 6ef451cb9af..1817ac82027 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -711,6 +711,8 @@ changes: * `exec` {string} File path to worker file. **Default:** `process.argv[1]` * `args` {Array} String arguments passed to worker. **Default:** `process.argv.slice(2)` + * `cwd` {string} Current working directory of the worker process. **Default:** + `undefined` (inherits from parent process) * `silent` {boolean} Whether or not to send output to parent's stdio. **Default:** `false` * `stdio` {Array} Configures the stdio of forked processes. Because the |