joyent/node — pull request #7682 by rmg (2014-05-23 20:16:08+00:00)
Title: cluster: restore v0.10.x setupMaster() behaviour

Fix for #7670 that restores previous behaviour and adds a regression test instead of changing cluster API.

In v0.10.x, `process.argv` and `process.execArgv` would only be
evaluated and copied into `cluster.settings` on the first call to
`cluster.setupMaster()` (either directly or via `cluster.fork()`),
allowing them to be modified as needed before initializing the
settings.

In 41b75ca the behaviour was changed so that these values are
initialized at the time of the first `require('cluster')`.

Fixes #7670.