mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:05:07 +00:00
Kernel: Make the "entire executable" region shared
This makes Region::clone() do the right thing with it on fork().
This commit is contained in:
parent
5c2a296a49
commit
0acac186fb
1 changed files with 2 additions and 0 deletions
|
@ -858,6 +858,8 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
|
|||
|
||||
ASSERT(region);
|
||||
|
||||
region->set_shared(true);
|
||||
|
||||
Region* master_tls_region { nullptr };
|
||||
size_t master_tls_size = 0;
|
||||
size_t master_tls_alignment = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue