Closed secDre4mer closed 1 year ago
In addition to the original fix, improved the behaviour: if mmap on a file fails, it now falls back to an anonymous mmap() followed by pread(), same as if the file couldn't be opened. Thanks to @hillu for this idea.
Check if mmap failed (return value MAP_FAILED) and, if yes, exit.