mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +00:00
Kernel: Drop futex queues/state on exec()
This state is not meaningful to the new process image so just drop it.
This commit is contained in:
parent
26a31c7efb
commit
4d4d5e1c07
Notes:
sideshowbarker
2024-07-19 10:01:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4d4d5e1c07d
1 changed files with 2 additions and 0 deletions
|
@ -820,6 +820,8 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
|
|||
current->m_signal_mask = 0;
|
||||
current->m_pending_signals = 0;
|
||||
|
||||
m_futex_queues.clear();
|
||||
|
||||
for (int i = 0; i < m_fds.size(); ++i) {
|
||||
auto& daf = m_fds[i];
|
||||
if (daf.description && daf.flags & FD_CLOEXEC) {
|
||||
|
|
Loading…
Add table
Reference in a new issue