Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's a long standing bug, setenv and unsetenv are not thread-safe

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



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: