joyent/node — pull request #2743 by shlevy (2012-02-13 00:56:01+00:00)
Title: Fix environment clearing in child_process.fork

Currently, if no env object is passed as part of options to child_process.fork, the environment is cleared. This is in contrast to both the typical Unix behavior of fork and child_process.spawn (from the docs for fork: This is a special case of the spawn() functionality for spawning Node processes.). I believe fork would better follow the principle of least surprise if it were implemented as I have changed it in this PR.