3 ms·
> To read the environment variables used by a program This is only the environmental variables used when the program launches. If said program changes any envi
by laumars 8y ago
> To read the environment variables used by a program
This is only the environmental variables used when the program launches. If said program changes any environmental variables during the course of it's execution then /proc/$pid/environ wouldn't be updated to reflect that.
I expect you're already aware of this but it's worth me mentioning just in case anyone reading this thread wasn't aware.