Re:Don't setenv in multi-threaded code on glibc
by tropo on Tuesday January 31, 2017 @06:07PM
(#13536312)
We should just deprecate setenv(). There is no need for it because we have execve().
I suppose there is system() on non-POSIX, but then you don't have a portable shell anyway nor do you have portable environment variables. You're off in 100% non-portable territory at that point, so no point having it in the standards.
I suppose there is system() on non-POSIX, but then you don't have a portable shell anyway nor do you have portable environment variables. You're off in 100% non-portable territory at that point, so no point having it in the standards.