Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
goeiedaggoeie
1y ago
0 comments
Share
setenv and getenv have never been thread safe, why the concern with it now?
0 comments
default
newest
oldest
kibwen
1y ago
The concern now is that, unlike when Posix was set in stone, threads exist.
loeg
1y ago
The p in pthreads stands for Posix. I.e., uh, Posix is neither set in stone, nor entirely predates threads.
pjmlp
1y ago
I 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.
1 more reply
kibwen
1y ago
And when can we expect the version of Posix that fixes setenv to be MT-safe?
1 more reply
j
/
k
navigate · click thread line to collapse