H
Hacker News
Top
Best
New
Posted by ingve 21 hours ago
What is going on in Unix with errno's limited nature
(utcc.utoronto.ca)
13 points
|
4 comments
amelius 20 hours ago
[-]
Why didn't they mention threads?
bartvk 18 hours ago
|
parent
[-]
Oh gosh, that's interesting. I bet that complicates using using errno. Or is errno somehow copied into a local variable?
Vogtinator 18 hours ago
|
root
|
parent
[-]
errno is in thread-local storage (TLS)
amelius 18 hours ago
|
root
|
parent
[-]
Yes. It is too bad that they didn't use a similar solution for the current working directory. Chdir() is process-wide, not thread local :(