> I'd say you shouldn't be calling setenv() at all once you've spawned threads.
Or, you know, get a better C library. https://src.illumos.org/source/xref/illumos-gate/usr/src/lib...
Or, you know, get a better C library. https://src.illumos.org/source/xref/illumos-gate/usr/src/lib...
I think the gist of it is that unlike the glibc implementation, the Illumos implementation of getenv() is lock-free and thread-safe.
I imagine that it is meant to convey that the quality is higher in this library than in GNU libc.