From 5a94e8dfd0f8dbd0cff64c209aa6be5e8dc03c5d Mon Sep 17 00:00:00 2001 From: Liav A Date: Thu, 6 Apr 2023 05:57:57 +0300 Subject: 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. --- Kernel/Process.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Kernel/Process.h') 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> create_kernel_thread(void (*entry)(void*), void* entry_data, u32 priority, NonnullOwnPtr name, u32 affinity = THREAD_AFFINITY_DEFAULT, bool joinable = true); bool is_profiling() const { return m_profiling; } -- cgit v1.2.3