Ah too bad. Is there another way to modify the runtime env during runtime? 
Another I could imagine 
would be adding to process.env but (not having looked at the code at all) 
node will only check for 
that during runtime initialization.

I can see good reason why and why not to do this but just wether or not 
thats possible at all is the 
question

Thanks!


On Wednesday, 12 November 2014 01:11:02 UTC+1, Ben Noordhuis wrote:
>
> On Tue, Nov 11, 2014 at 3:45 PM, Andreas Marschke 
> <andreas....@gmail.com <javascript:>> wrote: 
> > Hi! 
> > 
> > I've looked at process.config which is like this in my environment: 
> > 
> > { target_defaults: 
> >    { cflags: [], 
> >      default_configuration: 'Release', 
> >      defines: [], 
> >      include_dirs: [], 
> >      libraries: 
> >       [ '-lz', 
> >         '-lcares', 
> >         '-lv8', 
> >         '-lssl', 
> >         '-lcrypto' ] }, 
> >   variables: 
> >    { clang: 0, 
> >      gcc_version: 49, 
> >      host_arch: 'x64', 
> >      node_install_npm: false, 
> >      node_prefix: '/usr', 
> >      node_shared_cares: true, 
> >      node_shared_http_parser: false, 
> >      node_shared_libuv: false, 
> >      node_shared_openssl: true, 
> >      node_shared_v8: true, 
> >      node_shared_zlib: true, 
> >      node_tag: '', 
> >      node_unsafe_optimizations: 0, 
> >      node_use_dtrace: false, 
> >      node_use_etw: false, 
> >      node_use_openssl: true, 
> >      node_use_perfctr: false, 
> >      node_use_systemtap: false, 
> >      python: '/usr/bin/python', 
> >      target_arch: 'x64', 
> >      v8_enable_gdbjit: 0, 
> >      v8_no_strict_aliasing: 1, 
> >      v8_use_snapshot: false } } 
> > 
> > And looking at this I wondered: Does node (during runtime!) acknowledge 
> that 
> > you've change something there? Such as adding the key and value: 
> > 
> >     process.conf.variables.node_use_idle_notification = false 
> > 
> > Does node care about changes like this? Are there viable reasons to NOT 
> do 
> > this? 
> > 
> > Thanks in advance! 
> > 
> > Cheers, 
> > 
> > Andreas Marschke. 
>
> process.config is a copy of config.gypi, baked into the binary at 
> compile time.  That file is created by ./configure and contains build 
> time flags.  As such, mutating process.config does absolutely nothing. 
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/50ab595f-e70b-4ac4-8327-83700f97dab7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to