in c++ what happend if i'll call setenv in libraryA and than I'll try to read this…
- User
in c++ what happend if i'll call setenv in libraryA and than I'll try to read this variable in libraryB within same running binary on esxi
- Assistant
In C++, when you call
setenvto set an environment variable in one library (let's call itlibraryA), the variable is set for the entire process that is currently running, including all threads and libraries within that process, unless you specifically modify the environment for a child process. This means that if you successfully set an environment variable in , you can later read that variable in within the same running binary.