Kernel: Remove process from alarm list after it dies

This commit is contained in:
Bananymous 2024-12-03 16:16:08 +02:00
parent bc93d238dd
commit fcc2814199
1 changed files with 7 additions and 0 deletions

View File

@ -228,6 +228,13 @@ namespace Kernel
s_processes.remove(i);
break;
}
for (auto it = s_alarm_processes.begin(); it != s_alarm_processes.end();)
{
if (*it == this)
it = s_alarm_processes.remove(it);
else
it++;
}
}
ProcFileSystem::get().on_process_delete(*this);