mmap failed Cause

mmap cause of the failure,

One, probably due to fopen the file is read-only, but in the mmap was written PROT_READ | PROT_WRITE (reading and writing)

So you can just delete PROT_WRITE

(Check for a long time ...)

Released seven original articles · won praise 57 · views 60000 +

Guess you like

Origin blog.csdn.net/qq_28086637/article/details/103962684