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

If you fail to load an mmapped page because of an I/O error, Unix-like OSes interrupt your program with SIGBUS/SIGSEGV. It might be technically possible to write a program that would handle those signals and recover, but it seems like a lot more work and complexity than just checking errno after a read system call.


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

Search: