3 ms·
I'm confused, aren't we talking about the getaddrinfo() syscall? It definitely seems like that syscall is a (multithreaded) footgun that Go just happened to hi
by nvy 3y ago
I'm confused, aren't we talking about the getaddrinfo() syscall?
It definitely seems like that syscall is a (multithreaded) footgun that Go just happened to hit.
- fsckboy 3y agoa "syscall" is not going to call back into your code to get the environment. If a "syscall" is using your environment, it's part of your code, probably better described as a library call.
- saagarjha 3y agoFew people make raw syscalls.
- dundarious 3y agoIt's not a syscall, it's a C standard library function that may read files, talk to dbus, read env vars, etc. The problem is people quite understandably expect its re-entrancy to mean more than it really means.
- nvy 3y agoOh, that's my error. Shows you how much code I write that calls into libc, i.e. almost none.