Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
goeiedaggoeie
1y ago
0 comments
Save
Share
setenv and getenv have never been thread safe, why the concern with it now?
0 comments
4 comments · 1 top-level
top
newest
oldest
kibwen
1y ago
· 3 in thread
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