Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: