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.