LearnBoost / cluster

Node.JS multi-core server manager with plugins support.
http://learnboost.github.com/cluster
MIT License
2.29k stars 159 forks source link

Spawned workers should use the same working directory as the master. #172

Open alexkwolfe opened 12 years ago

alexkwolfe commented 12 years ago

Before this fix, the process.cwd() of workers was the parent directory of the running script rather than the current working directory of the master script process. This fix ensures that the workers have the same process.cwd() as the master.

kainosnoema commented 12 years ago

+1

I just ran into this again tonight. Seems like a major change, but makes a lot of sense.