forgot to check the rval of an mmap, and calls to close now check for EINTR and retry