News for hackers. Stuff that matters.
Re:Don't setenv in multi-threaded code on glibc by jjnoakes on Tuesday January 31, 2017 @01:33PM (#13533630)
The issue has nothing to do with fork or exec; if you have two threads in a process, and one calls setenv() while another calls getenv(), you can hit this issue.
Re:Don't setenv in multi-threaded code on glibc by ambrop7 on Tuesday January 31, 2017 @01:38PM (#13533697)
Ah, right, seems like I have mistaken the first paragraph as a summary of the post.