diff options
author | Liav A <liavalb@gmail.com> | 2023-04-06 05:57:57 +0300 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-04-09 18:49:01 +0200 |
commit | 5a94e8dfd0f8dbd0cff64c209aa6be5e8dc03c5d (patch) | |
tree | 47eb00e8d5ae2d4175dc3f411692d02a8d16cf04 /Kernel/Process.h | |
parent | 67aceb6c67cb06b1b8607fa74a4fb6180a151fd1 (diff) | |
download | serenity-5a94e8dfd0f8dbd0cff64c209aa6be5e8dc03c5d.zip |
Kernel: Ensure jailed processes can be reaped by a jailed parent process
We were detaching from the jail process list too early. To ensure we
detach properly, leverage the remove_from_secondary_lists method
so the possibly jailed parent process can still see the dying process
and therefore clean it properly.
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r-- | Kernel/Process.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index 294228e3e4..09798c2da6 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -204,6 +204,8 @@ public: ~Process(); + virtual void remove_from_secondary_lists(); + ErrorOr<NonnullRefPtr<Thread>> create_kernel_thread(void (*entry)(void*), void* entry_data, u32 priority, NonnullOwnPtr<KString> name, u32 affinity = THREAD_AFFINITY_DEFAULT, bool joinable = true); bool is_profiling() const { return m_profiling; } |