Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Orangeair
· 1y ago · 0 comments
It's a long standing bug, setenv and unsetenv are not thread-safe
https://www.evanjones.ca/setenv-is-not-thread-safe.html
Comments
[–]
robertlagrant
1y ago
I honestly think using setenv is just a terrible idea.
[–]
ak_111
1y ago
can you elaborate what is the simpelist alternative?
[–]
darthwalsh
1y ago
Simple, you don't set any env vars after starting new threads