Hacker News new | ask | show | jobs
by gnubison 991 days ago
Is Linux designed in such a way that less-than-page size allocations never fail? How would that work?
1 comments

As long as the syscalls don't themselves fail, it's no problem until you run out of address space. At which point you should crash because you probably need to allocate to handle any reasonable errors.
So is there no point to checking malloc return ?