mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Kernel: Cloned shared regions should also be marked as shared
This commit is contained in:
parent
8731682d0e
commit
f91b3aab47
1 changed files with 1 additions and 0 deletions
|
@ -96,6 +96,7 @@ NonnullOwnPtr<Region> Region::clone()
|
|||
// Create a new region backed by the same VMObject.
|
||||
auto region = Region::create_user_accessible(m_range, m_vmobject, m_offset_in_vmobject, m_name, m_access);
|
||||
region->set_mmap(m_mmap);
|
||||
region->set_shared(m_shared);
|
||||
return region;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue