Hacker News new | ask | show | jobs
by Orangeair 399 days ago
It's a long standing bug, setenv and unsetenv are not thread-safe

https://www.evanjones.ca/setenv-is-not-thread-safe.html

1 comments

I honestly think using setenv is just a terrible idea.
can you elaborate what is the simpelist alternative?
Simple, you don't set any env vars after starting new threads