News for hackers. Stuff that matters.
Re:Setenv Is Not Thread Safe and C Doesn't Want to Fix It by Sytten on Monday November 20, 2023 @09:12AM (#38348440)
There is an issue in the std to name setenv unsafe but that is a breaking change so it's complicated.
Re:Setenv Is Not Thread Safe and C Doesn't Want to Fix It by kibwen on Monday November 20, 2023 @11:15AM (#38349941)
One problem is that marking that function as unsafe would unfairly penalize platforms like Windows that don't have this issue. Even if it turns out to be the least-bad compromise solution, it sure would be nice if we could have nice things.