5 ms·
It's a long standing bug, setenv and unsetenv are not thread-safe https://www.evanjones.ca/setenv-is-not-thread-safe.html https://www.evanjones.ca/setenv-is-no
by Orangeair 1y ago
It's a long standing bug, setenv and unsetenv are not thread-safe
https://www.evanjones.ca/setenv-is-not-thread-safe.html https://www.evanjones.ca/setenv-is-not-thread-safe.html
- robertlagrant 1y agoI honestly think using setenv is just a terrible idea.
- ak_111 1y agocan you elaborate what is the simpelist alternative?
- darthwalsh 1y agoSimple, you don't set any env vars after starting new threads