Skip to content

Instantly share code, notes, and snippets.

Created March 11, 2013 14:30
Show Gist options
  • Select an option

  • Save anonymous/5134635 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/5134635 to your computer and use it in GitHub Desktop.
//====> This won't wokrk
//master
child_process.fork('myChild.js', null, {env : {"someenv" : "wont_work"}});
//myChild.js
process.env.someenv //undefined
//====> This will work
//master
child_process.fork('myChild.js', [], {env : {"someenv" : "will_work"}});
//myChild.js
process.env.someenv //will_work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment