Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Orangeair
9 months ago
|
parent
|
context
|
favorite
| on:
Rust’s dependencies are starting to worry me
It's a long standing bug, setenv and unsetenv are not thread-safe
https://www.evanjones.ca/setenv-is-not-thread-safe.html
robertlagrant
9 months ago
[–]
I honestly think using setenv is just a terrible idea.
ak_111
9 months ago
|
parent
[–]
can you elaborate what is the simpelist alternative?
darthwalsh
9 months ago
|
root
|
parent
[–]
Simple, you don't set any env vars after starting new threads
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://www.evanjones.ca/setenv-is-not-thread-safe.html