4 ms·
The right thing to do is to create a new thread safe api and implement that and then standardize it. Hard but very unsexy work.
by grandinj 3y ago
The right thing to do is to create a new thread safe api and implement that and then standardize it. Hard but very unsexy work.
- xxs 3y agoThe right thing is not to modify a global state once you have started all the threads. If you need to do that, use your own data structures. The case of getaddrinfo - would need a copy of the entire env. in a thread safe manner, then return the result. That would pretty much apply to anything that uses env
- saagarjha 3y agoThe person who fixed this would be incredibly sexy in my book. Though, that probably tells you more about my own sexiness than it invalidates your comment.
- xxs 3y agoThe sexy part is more like having an extremely brushed/retouched image in a magazine - it's not real.
- cryptonector 3y agoIt is fixed in Solaris/Illumos. glibc just needs to copy the approach.