mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05: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);
|
ASSERT(region);
|
||||||
|
|
||||||
|
region->set_shared(true);
|
||||||
|
|
||||||
Region* master_tls_region { nullptr };
|
Region* master_tls_region { nullptr };
|
||||||
size_t master_tls_size = 0;
|
size_t master_tls_size = 0;
|
||||||
size_t master_tls_alignment = 0;
|
size_t master_tls_alignment = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue