I'm doing this:
It's throwing. Why? Because read() is returning 4097?!Code:if(read(mMemFd, buf, PageSize()) != 4096) throw ProcException();
mMemFd is an open file descriptor on /proc/XXX/mem. Obviously, read() doesn't normally do this or the whole system would be breaking.
Kernel is Linux 2.6.20