Kernel: Fix shm object freeing and track lpid

I was deleting based on the key instead of the id which of course does
not work :D
This commit is contained in:
2026-08-19 21:32:36 +03:00
parent ac99bf128b
commit f0a114f4e5
2 changed files with 15 additions and 9 deletions
@@ -27,8 +27,9 @@ namespace Kernel
private:
struct Object : public BAN::RefCounted<Object>
{
Object(key_t key, shmid_ds info)
Object(key_t key, int id, shmid_ds info)
: key(key)
, id(id)
, info(info)
{ }
~Object();
@@ -36,6 +37,7 @@ namespace Kernel
bool can_current_process_access(int flags) const;
const key_t key;
const int id;
shmid_ds info;
Mutex mutex;