3 ms·
> An environment variable's value, for a running process, is just what it is: an initial value from outside. Then calling setenv() from anywhere except in the
by aidenn0 3y ago
> An environment variable's value, for a running process, is just what it is: an initial value from outside.
Then calling setenv() from anywhere except in the time between a fork() and exec() call should be banned, but it's not. Honestly, calling abort() if setenv is called in the presence of threads would seem like a better status-quo than what we have today.
- nwmcsween 3y agoAnd how do you propose banning it? Should libc track function calls? Maybe when the linker links setenv we just print out the man page for setenv.