1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

Kernel: Clear unveiled state on exec()

This commit is contained in:
Andreas Kling 2020-01-21 10:46:31 +01:00
parent cf48c20170
commit 22cfb1f3bd

View file

@ -860,6 +860,9 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
m_promises = m_execpromises;
m_unveil_state = UnveilState::None;
m_unveiled_paths.clear();
// Copy of the master TLS region that we will clone for new threads
m_master_tls_region = master_tls_region;