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

The fault will also raise a signal if there is an error reading the sector from the drive (what would be an EIO from read()). Lack of error handling in mmap isn't only a problem for removable media.


yes, that sounds like a good idea to me. Like I said: if you use mmap, the expectation is that the drive will not bork and if it does, it should terminate the application.




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

Search: