MFC r273360:

One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified.
This commit is contained in:
np 2014-11-17 07:37:41 +00:00
parent 70603ae477
commit f47eb9ae9f

View File

@ -1462,7 +1462,7 @@ loadfw(int argc, const char *argv[])
}
data.len = st.st_size;
data.data = mmap(0, data.len, PROT_READ, 0, fd, 0);
data.data = mmap(0, data.len, PROT_READ, MAP_PRIVATE, fd, 0);
if (data.data == MAP_FAILED) {
warn("mmap");
close(fd);