Kernel: Remove process from alarm list after it dies
This commit is contained in:
parent
bc93d238dd
commit
fcc2814199
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue