Was checking the wrong variable to see if mmap() failed