aboutsummaryrefslogtreecommitdiff
path: root/lib/internal/cluster
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/cluster')
-rw-r--r--lib/internal/cluster/master.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/internal/cluster/master.js b/lib/internal/cluster/master.js
index 280955549a..570cf7bc6f 100644
--- a/lib/internal/cluster/master.js
+++ b/lib/internal/cluster/master.js
@@ -126,6 +126,7 @@ function createWorkerProcess(id, env) {
}
return fork(cluster.settings.exec, cluster.settings.args, {
+ cwd: cluster.settings.cwd,
env: workerEnv,
silent: cluster.settings.silent,
windowsHide: cluster.settings.windowsHide,