Re: getenv, putenv
- From: llothar <llothar@xxxxxx>
- Date: Wed, 30 Jan 2008 07:59:51 -0800 (PST)
When I try to invoke same environment variable using another thread
within same process using getenv, I am not able to access the value of
env variable.
Can Anyone please let me know, what could be the probable reason for
this problem.
AFAIR there was some spec that said that you can't use getenv to
retrieve variables set by the same process. setenv is just there to
pass
variables to child processes.
I also run into this a few years ago and it has nothing to do with
multithreading.
If you can use setenv/getenv in the same process it is an
implementation
detail but trust it - and by the way why do you want to do it anyway.
.
- Follow-Ups:
- Re: getenv, putenv
- From: Bhawna
- Re: getenv, putenv
- References:
- getenv, putenv
- From: Bhawna
- getenv, putenv
- Prev by Date: gdb
- Next by Date: Re: longjump && re-entrancy
- Previous by thread: getenv, putenv
- Next by thread: Re: getenv, putenv
- Index(es):
Relevant Pages
|