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

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.
This commit is contained in:
Liav A 2023-04-06 05:57:57 +03:00 committed by Jelle Raaijmakers
parent 67aceb6c67
commit 5a94e8dfd0
2 changed files with 13 additions and 7 deletions

View file

@ -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; }