From 46da3a3a406f030ed10503e02266e1020f029201 Mon Sep 17 00:00:00 2001 From: Alex Wolfe Date: Wed, 16 Nov 2011 18:33:29 -0600 Subject: [PATCH] Spawned workers should use the same working directory as the master. --- lib/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/worker.js b/lib/worker.js index 1628ca6..fd9452d 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -205,7 +205,7 @@ Worker.prototype.spawn = function(id){ this.proc = spawn( node , this.master.cmd - , { customFds: customFds, env: env }); + , { customFds: customFds, env: env, cwd: process.cwd() }); // unix domain socket for ICP + fd passing this.sock = new net.Socket(fds[1], 'unix');