News for hackers. Stuff that matters.
Re:Setenv Is Not Thread Safe and C Doesn't Want to Fix It by agevag on Monday November 20, 2023 @05:28AM (#38345957)
I'm not sure I understand the question.

If you are writing, say, a GUI application, and use GTK, GTK may use getenv (without your mutexes, of course) at the same time you call setenv in another thread, potentially crashing your entire application if you are unlucky.

There are no comments on this comment yet.