linux: Fix broken process limits implementation

This commit is contained in:
EnderIce2
2024-10-13 02:19:26 +03:00
parent 02cf233534
commit 93e8e3f354
3 changed files with 78 additions and 23 deletions

View File

@ -166,7 +166,7 @@ namespace vfs
{
Tasking::PCB *pcb = thisProcess;
for (size_t i = 0; i < pcb->Limits.OpenFiles; i++)
for (size_t i = 0; i < pcb->SoftLimits.OpenFiles; i++)
{
auto it = this->FileMap.find(i);
if (it == this->FileMap.end())