3 ms·
Why can't they help fix the C library in question? Cancelation is really tricky to implement for the C library author. It's one of those concepts that, like for
by jart 1y ago
Why can't they help fix the C library in question? Cancelation is really tricky to implement for the C library author. It's one of those concepts that, like fork, has implications that pervade everything. Please give your C library maintainers a little leeway if they get cancelation wrong. Especially if it's just a memory leak.
- RedShift1 1y agoI'm betting this code is so old and its behavior so ingrained everywhere else that nobody dares touching it.
- jart 1y agoNo it sounds like they just need to add a pthread_cleanup_push() call somewhere in the getaddrinfo() implementation. C libraries are not black magic. Nor are they holy code. We needn't fear them. It's the simplest part of the software stack.