3 ms·
setenv and getenv have never been thread safe, why the concern with it now?
by goeiedaggoeie 2y ago
setenv and getenv have never been thread safe, why the concern with it now?
- kibwen 2y agoThe concern now is that, unlike when Posix was set in stone, threads exist.
- loeg 2y agoThe p in pthreads stands for Posix. I.e., uh, Posix is neither set in stone, nor entirely predates threads.
- kibwen 2y agoAnd when can we expect the version of Posix that fixes setenv to be MT-safe?
- pjmlp 2y agoI am old enough to remeber when UNIX only had processes, and several thread designs were being discussed until eventually pthreads one design won. POSIX predates adoption of threads in the UNIX world.