1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

Add per-task limit for open fd's. Hard-coded at 16 for now.

This commit is contained in:
Andreas Kling 2018-10-26 14:30:13 +02:00
parent 2749e7f1c2
commit 384e2f24d4
2 changed files with 10 additions and 24 deletions

View file

@ -124,8 +124,6 @@ private:
Task(String&& name, uid_t, gid_t, pid_t parentPID, RingLevel);
FileHandle* openFile(String&&);
void allocateLDT();
Task* m_prev { nullptr };
@ -151,6 +149,7 @@ private:
dword m_timesScheduled { 0 };
pid_t m_waitee { -1 };
int m_fdBlockedOnRead { -1 };
size_t m_maxFileHandles { 16 };
RetainPtr<VirtualFileSystem::Node> m_cwd;