thanks W dniu wtorek, 27 listopada 2012 20:55:38 UTC+1 użytkownik Ben Noordhuis napisał: > > On Tue, Nov 27, 2012 at 3:17 PM, StevePL <[email protected]<javascript:>> > wrote: > > I need to use old version of node (v0.6.17 || v0.6.2) and when I use > > cluster.fork need to pass some vars to worker, that they have it when > > starts. > > In node v0.8 you can just do this: cluster.fork(env); but u can't in > v0.6.x > > > > So is there a solution for v0.6.x? > > process.env.my_env_var = 'foo'; > var worker = cluster.fork(); > delete process.env.my_env_var; >
-- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
