Remix.run Logo
jart 3 days 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 3 days ago | parent [-]

I'm betting this code is so old and its behavior so ingrained everywhere else that nobody dares touching it.

jart 3 days ago | parent [-]

No 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.