Use different approach in shm::unmap_critical (Linux)
For now, set protection to PROT_NONE. Attempt to address #9609
This commit is contained in:
@@ -461,7 +461,7 @@ namespace utils
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
::mmap(reinterpret_cast<void*>(target), m_size, PROT_NONE, MAP_FIXED | MAP_ANON | MAP_PRIVATE | c_map_noreserve, -1, 0);
|
ensure(::mprotect(target, m_size, PROT_NONE) != -1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user