mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
Kernel: Clear coredump metadata on exec()
If for some reason a process wants to exec after saving some coredump metadata, we should just throw away the data.
This commit is contained in:
parent
fd29bed656
commit
54f421e170
1 changed files with 2 additions and 0 deletions
|
@ -527,6 +527,8 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
|
|||
m_veil_state = VeilState::None;
|
||||
m_unveiled_paths.clear();
|
||||
|
||||
m_coredump_metadata.clear();
|
||||
|
||||
current_thread->set_default_signal_dispositions();
|
||||
current_thread->clear_signals();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue