From e0864e50ecf917cbfa98d443e6f122425d6447cf Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 26 Jan 2018 14:16:20 -0500 Subject: 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 Reviewed-By: Luigi Pinca --- doc/api/cluster.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/api/cluster.md') diff --git a/doc/api/cluster.md b/doc/api/cluster.md index 6ef451cb9a..1817ac8202 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 -- cgit v1.2.3